Logo Search packages:      
Sourcecode: unfs3 version File versions  Download package

init.d

#!/bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/unfsd
NAME=unfs3
DESC=unfs3

test -x $DAEMON -a -f /etc/exports || exit 0

# Include #PACKAGE# defaults if available
if [ -f /etc/default/unfs3 ]
then
      . /etc/default/unfs3
fi

set -e

case "$1" in
      start)
            echo -n "Starting $DESC: "
            start-stop-daemon --start --quiet --oknodo --exec $DAEMON \
                  -- $DAEMON_OPTS
            echo "$NAME."
            ;;

      stop)
            echo -n "Stopping $DESC: "
            start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
            echo "$NAME."
            ;;

      restart|force-reload)
            echo -n "Restarting $DESC: "
            start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
            sleep 1
            start-stop-daemon --start --quiet --oknodo --exec $DAEMON \
                  -- $DAEMON_OPTS
            echo "$NAME."
            ;;

      *)
            N=/etc/init.d/$NAME
            echo "Usage: $N {start|stop|restart|force-reload}" >&2
            exit 1
            ;;
esac

exit 0

Generated by  Doxygen 1.6.0   Back to index