5 # Required-Start: $network
6 # Required-Stop: $network
9 # Default-Start: 2 3 4 5
11 # Short-Description: starts user-space NFSv3 server
12 # Description: UNFS3 is a user-space implementation of the NFSv3 server
16 PATH=/sbin:/bin:/usr/sbin:/usr/bin
17 DAEMON=/usr/sbin/unfsd
21 test -x $DAEMON -a -f /etc/exports || exit 0
23 # Include #PACKAGE# defaults if available
24 if [ -f /etc/default/unfs3 ]
33 echo -n "Starting $DESC: "
34 /etc/init.d/portmap start
35 start-stop-daemon --start --quiet --oknodo --exec $DAEMON \
41 echo -n "Stopping $DESC: "
42 start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
47 echo -n "Restarting $DESC: "
48 start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
50 start-stop-daemon --start --quiet --oknodo --exec $DAEMON \
57 echo "Usage: $N {start|stop|restart|force-reload}" >&2