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
17 . /lib/lsb/init-functions
21 log_daemon_msg "Starting the Winbind daemon" "winbind"
23 start-stop-daemon --start --quiet --exec $DAEMON
29 log_daemon_msg "Stopping the Winbind daemon" "winbind"
31 start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
37 log_daemon_msg "Restarting the Winbind daemon" "winbind"
39 start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
41 start-stop-daemon --start --quiet --exec $DAEMON
46 echo "Usage: /etc/init.d/winbind {start|stop|restart|force-reload}"