dsdb-acl: introduce a 'msg' helper variable to acl_modify()
[Samba/gebeck_regimport.git] / packaging / sysv / samba.init
blobe021e911f6be75e70a81bf22d6d5550d267e07ea
1 #!/bin/sh
3 # Copyright (c) Timo Knuutila <knuutila@cs.utu.fi> 1996.
5 # This file should have uid root, gid sys and chmod 744
7 if [ ! -d /usr/bin ]
8 then # /usr not mounted
9 exit
12 killproc() { # kill the named process(es)
13 pid=`/usr/bin/ps -e |
14 /usr/bin/grep -w $1 |
15 /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
16 [ "$pid" != "" ] && kill $pid
19 # Start/stop processes required for samba server
21 case "$1" in
23 'start')
25 # Edit these lines to suit your installation (paths, workgroup, host)
27 /opt/samba/bin/smbd -D -s/opt/samba/smb.conf
28 /opt/samba/bin/nmbd -D -l/opt/samba/log -s/opt/samba/smb.conf
30 'stop')
31 killproc nmbd
32 killproc smbd
35 echo "Usage: /etc/init.d/samba.server { start | stop }"
37 esac