samba

Franca Vercellone franca at provincia.torino.it
Thu Sep 10 10:12:42 GMT 1998


I have a big problem.
All the time that the server on which I have configured samba  made reboot,
it can not print by printers shared with samba.
If I made /etc/init.d/sambaserver stop
          /etc/init.d/sambaserver start  all work correctly.
I have olready put in the corntab 's root file this command for made restart 
of the process exacly one minute later than the reboot , but is non sufficently
It must be do by hand .
The processes start in /etc/rc3.d whit the following script :

#!/bin/sh
#ident  "@(#)samba.server 1.0   96/06/19 TK"    /* SVr4.0 1.1.13.1*/
#
# Please send info on modifications to knuutila at cs.utu.fi
#
# This file should have uid root, gid sys and chmod 744
#
 
killproc() {            # kill the named process(es)
        pid=`/usr/bin/ps -e |
             /usr/bin/grep -w $1 |
             /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
        [ "$pid" != "" ] && kill $pid
}
 
# Start/stop processes required for samba server
 
case "$1" in
 
'start')
#
# Edit these lines to suit your installation (paths, workgroup, host)
#
   awk -F: ' $1 ~ /^[A-z]+/ { printf ( "%s|", $1)} END { printf ("\n")}' /etc/pr
intcap > /opt/samba/printcap 2>/dev/null
   /opt/samba/bin/smbd -D -s/opt/samba/smb.conf
   /opt/samba/bin/nmbd -D -H /opt/samba/hosts -n LMserver-vc  -l/opt/samba/log -
s/opt/samba/smb.conf
   ;;
'stop')
   killproc nmbd
   killproc smbd
   ;;
*)
   echo "Usage: /etc/init.d/samba.server { start | stop }"
   ;;
esac


PLEASE , HELP ME , is very important....
Thank's

Franca Vercellone     email: Vercellone at csi.it


More information about the samba mailing list