12 # Determine PID of process(es) to stop and kill it. This routine
13 # is designed to work with bourne shell, ksh and posix shell.
15 Command=`basename $proc | cut -c1-8` # Solaris ps limited to 8 chars.
17 pid=`ps -e | awk "\\$NF~/$Command/ {print \\$1}"`
19 if [ "X$pid" != "X" ]; then
24 if [ ! -f /etc/rc.config.d/samba ]
26 echo "ERROR: Config file /etc/rc.config.d/samba missing."
30 . /etc/rc.config.d/samba
34 echo "Start Samba Services"
38 echo "Stop Samba Services"
42 # Starting Samba is easy ...
43 if [ "$SAMBA_START" -eq 1 ]
45 if [ -x /usr/local/samba/bin/smbd ]
47 /usr/local/samba/bin/smbd -D -d $SAMBA_DEBUG
50 if [ -x /usr/local/samba/bin/nmbd ]
52 /usr/local/samba/bin/nmbd -D -d $SAMBA_DEBUG
59 # ... stopping it, however, is another story
66 echo "usage: $0 {start|stop|start_msg|stop_msg}"