r18827: I forgot to commit this:
[Samba.git] / packaging / debian / init.d
bloba0c7969a8b5125273d1316263a48ede6aa3a67b5
1 #!/bin/sh
3 # This file was automatically customized by debmake on Thu, 13 May 2004 01:38:41 +0200
5 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
6 # Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.org>.
7 # Modified for Debian by Christoph Lameter <clameter@debian.org>
9 PATH=/bin:/usr/bin:/sbin:/usr/sbin
10 DAEMON=/usr/sbin/smbd4
11 # The following value is extracted by debstd to figure out how to generate
12 # the postinst script. Edit the field to change the way the script is
13 # registered through update-rc.d (see the manpage for update-rc.d!)
14 FLAGS="defaults 50"
16 test -f $DAEMON || exit 0
18 case "$1" in
19 start)
20 start-stop-daemon --start --verbose --exec $DAEMON
22 stop)
23 start-stop-daemon --stop --verbose --exec $DAEMON
25 #reload)
27 # If the daemon can reload its config files on the fly
28 # for example by sending it SIGHUP, do it here.
30 # If the daemon responds to changes in its config file
31 # directly anyway, make this a do-nothing entry.
33 # start-stop-daemon --stop --signal 1 --verbose --exec $DAEMON
34 # ;;
35 restart|force-reload)
37 # If the "reload" option is implemented, move the "force-reload"
38 # option to the "reload" entry above. If not, "force-reload" is
39 # just the same as "restart".
41 start-stop-daemon --stop --verbose --exec $DAEMON
42 sleep 1
43 start-stop-daemon --start --verbose --exec $DAEMON
46 echo "Usage: /etc/init.d/samba {start|stop|restart|force-reload}"
47 exit 1
49 esac
51 exit 0