summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian/winbind.init
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Debian/debian/winbind.init')
-rw-r--r--packaging/Debian/debian/winbind.init49
1 files changed, 49 insertions, 0 deletions
diff --git a/packaging/Debian/debian/winbind.init b/packaging/Debian/debian/winbind.init
new file mode 100644
index 0000000000..28b7ff8cf0
--- /dev/null
+++ b/packaging/Debian/debian/winbind.init
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# Start/stops the winbindd daemon.
+#
+# $Id: winbind.init,v 1.1.6.1 2003/06/01 04:30:10 peloy Exp $
+#
+
+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
+