SAMBA

Franca Vercellone franca at provincia.torino.it
Wed Sep 9 06:48:24 GMT 1998


HO un problema grandissimo.
Tutte le volte che il server sul quale e' configurato samba reboostrappa,
non si riesce piu' a stampare dalle stampanti condivise con samba.
Basta fare /etc/init.d/sambaserver stop
           /etc/init.d/sambaserver start   e tutto rifunziona.
Ho gia' messo nel crontab questo comando per far restartare i processi un 
minuto dopo che il server e' salito...ma non server...Deve prorpio essere 
fatto a mano.
I processi partono nel /etc/rc3.d con il seguente 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


VI prego....AIUTATEMI !!!!!!!!!! Non so piu' cosa fare per risolvere
questo DRAMMA.....

Grazie
Franca Vercellone     email: Vercellone at csi.it           


More information about the samba mailing list