#! /bin/sh
### BEGIN INIT INFO
# Provides:          remotelog-mounts
# Required-Start:    $remote_fs $time
# Required-Stop:     umountnfs $time
# X-Stop-After:      sendsigs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: bind mounts to /var/log/remote-log
# Description:       bind mounts to /var/log/remote-log
### END INIT INFO

NAME=remotelog-mounts
SCRIPTNAME=/etc/init.d/$NAME
BINARY=/usr/sbin/remotelog-mounts

# Exit if the package is not installed
[ -x "$BINARY" ] || exit 0

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

# Define LSB log_* functions.
. /lib/lsb/init-functions

case "$1" in
  start)
	$BINARY mount || true
	;;
  stop)
	$BINARY umount || true
	;;
  restart|force-reload)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
	exit 3
	;;
esac

:
