3 # Start/stops the winbindd daemon.
7 PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
9 DAEMON
=/usr
/sbin
/winbindd
11 # clear conflicting settings from the environment
14 # See if the daemon is there
15 test -x $DAEMON ||
exit 0
19 echo -n "Starting the Winbind daemon: winbindd"
21 start-stop-daemon
--start --quiet --exec $DAEMON
26 echo -n "Stopping the Winbind daemon: winbindd"
28 start-stop-daemon
--stop --quiet --oknodo --exec $DAEMON
33 echo -n "Restarting the Winbind daemon: winbindd"
35 start-stop-daemon
--stop --quiet --oknodo --exec $DAEMON
37 start-stop-daemon
--start --quiet --exec $DAEMON
42 echo "Usage: /etc/init.d/winbind {start|stop|restart|force-reload}"