Update WHATSNEW.txt with information from release branch, SAMBA_3_0 talks only about...
[Samba/gebeck_regimport.git] / examples / svr4-startup / samba.server
blob0a47fdb10ce623ed061fd67260beb9820bf9313f
1 #!/bin/sh
2 #ident "@(#)samba.server 1.0 96/06/19 TK" /* SVr4.0 1.1.13.1*/
4 # Please send info on modifications to knuutila@cs.utu.fi
6 # This file should have uid root, gid sys and chmod 744
8 if [ ! -d /usr/bin ]
9 then # /usr not mounted
10 exit
13 killproc() { # kill the named process(es)
14 pid=`/usr/bin/ps -e |
15 /usr/bin/grep -w $1 |
16 /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
17 [ "$pid" != "" ] && kill $pid
20 # Start/stop processes required for samba server
22 case "$1" in
24 'start')
26 # Edit these lines to suit your installation (paths, workgroup, host)
28 /opt/samba/bin/smbd -D -s/opt/samba/smb.conf
29 /opt/samba/bin/nmbd -D -l/opt/samba/log -s/opt/samba/smb.conf
31 'stop')
32 killproc nmbd
33 killproc smbd
36 echo "Usage: /etc/init.d/samba.server { start | stop }"
38 esac