diff options
author | Simo Sorce <idra@samba.org> | 2004-05-14 12:42:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:35 -0500 |
commit | c32c36d96f3a7863ab8514456e8a0eb9e4839264 (patch) | |
tree | dfc31bfe53dea0b3460f8c5f823d8d9ed65c13ec /packaging/Debian/debian-unstable/winbind.init | |
parent | 400bed7a68ccdeeb8c50326e817788e01b155907 (diff) | |
download | samba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.tar.gz samba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.tar.bz2 samba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.zip |
r730: move the current debian dir to debian-unstable
(This used to be commit 65022f1dde7012a8c8c1872ad87184531973b5c5)
Diffstat (limited to 'packaging/Debian/debian-unstable/winbind.init')
-rw-r--r-- | packaging/Debian/debian-unstable/winbind.init | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/packaging/Debian/debian-unstable/winbind.init b/packaging/Debian/debian-unstable/winbind.init new file mode 100644 index 0000000000..2dfdf3b835 --- /dev/null +++ b/packaging/Debian/debian-unstable/winbind.init @@ -0,0 +1,48 @@ +#!/bin/sh +# +# Start/stops the winbindd daemon. +# +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +DAEMON=/usr/sbin/winbindd + +# clear conflicting settings from the environment +unset TMPDIR + +# See if the daemon is there +test -x $DAEMON || exit 0 + +case "$1" in + start) + echo -n "Starting the Winbind daemon: winbindd" + + start-stop-daemon --start --quiet --exec $DAEMON + + echo "." + ;; + stop) + echo -n "Stopping the Winbind daemon: winbindd" + + start-stop-daemon --stop --quiet --oknodo --exec $DAEMON + + echo "." + ;; + restart|force-reload) + echo -n "Restarting the Winbind daemon: winbindd" + + start-stop-daemon --stop --quiet --oknodo --exec $DAEMON + sleep 2 + start-stop-daemon --start --quiet --exec $DAEMON + + echo "." + ;; + *) + echo "Usage: /etc/init.d/winbind {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 + |