include updates
[tomato.git] / release / src-rt-6.x.4708 / router / samba-3.0.25b / packaging / Debian / debian-sarge / winbind.init
blob2dfdf3b83527565d42a6aaca2d4897a0f85c9520
1 #!/bin/sh
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
12 unset TMPDIR
14 # See if the daemon is there
15 test -x $DAEMON || exit 0
17 case "$1" in
18 start)
19 echo -n "Starting the Winbind daemon: winbindd"
21 start-stop-daemon --start --quiet --exec $DAEMON
23 echo "."
25 stop)
26 echo -n "Stopping the Winbind daemon: winbindd"
28 start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
30 echo "."
32 restart|force-reload)
33 echo -n "Restarting the Winbind daemon: winbindd"
35 start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
36 sleep 2
37 start-stop-daemon --start --quiet --exec $DAEMON
39 echo "."
42 echo "Usage: /etc/init.d/winbind {start|stop|restart|force-reload}"
43 exit 1
45 esac
47 exit 0