1 # Configure script for Samba.swat
10 # Determine PID of process(es) to stop and kill it. This routine
11 # is designed to work with bourne shell, ksh and posix shell.
13 Command=`basename $proc | cut -c1-8` # Solaris ps limited to 8 chars.
15 pid=`ps -e | awk "\\$NF~/$Command/ {print \\$1}"`
17 if [ "X$pid" != "X" ]; then
24 if grep -q '^swat' /etc/services
29 echo "swat 901/tcp" >>/etc/services
31 NOTE: The following entry had been added to /etc/services:
33 Should you want to move SWAT to another port, modify the entry
34 accordingly and restart inetd daemon with -HUP signal.
41 if grep -q '^swat' /etc/inetd.conf
46 echo "swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat" >>/etc/inetd.conf
55 if [ "$UPDATE" -eq 1 ]