summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian-unstable/winbind.init
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Debian/debian-unstable/winbind.init')
-rw-r--r--packaging/Debian/debian-unstable/winbind.init16
1 files changed, 10 insertions, 6 deletions
diff --git a/packaging/Debian/debian-unstable/winbind.init b/packaging/Debian/debian-unstable/winbind.init
index 2dfdf3b835..18e342597b 100644
--- a/packaging/Debian/debian-unstable/winbind.init
+++ b/packaging/Debian/debian-unstable/winbind.init
@@ -14,29 +14,33 @@ unset TMPDIR
# See if the daemon is there
test -x $DAEMON || exit 0
+. /lib/lsb/init-functions
+
case "$1" in
start)
- echo -n "Starting the Winbind daemon: winbindd"
+ log_daemon_msg "Starting the Winbind daemon" "winbind"
start-stop-daemon --start --quiet --exec $DAEMON
- echo "."
+ log_end_msg $?
;;
+
stop)
- echo -n "Stopping the Winbind daemon: winbindd"
+ log_daemon_msg "Stopping the Winbind daemon" "winbind"
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
- echo "."
+ log_end_msg $?
;;
+
restart|force-reload)
- echo -n "Restarting the Winbind daemon: winbindd"
+ log_daemon_msg "Restarting the Winbind daemon" "winbind"
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
sleep 2
start-stop-daemon --start --quiet --exec $DAEMON
- echo "."
+ log_end_msg $?
;;
*)
echo "Usage: /etc/init.d/winbind {start|stop|restart|force-reload}"