[Samba] stability

David Morel david.morel at amakuru.net
Tue Jun 10 06:45:57 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joel Hammer wrote:
| #!/bin/bash
| case "$1" in
|  start)
|   killall smbd
|   killall nmbd

sleep 5 wouldn't hurt...

| /usr/local/samba/bin/smbd -D
| /usr/local/samba/bin/nmbd -D
|   ;;

or even something along the lines of:

killall smbd
killall nmbd
for i in 1 2 3 4 5; do
~  ( test ! -z `pidof nmbd` || test ! -z `pidof nmbd` ) && sleep 1
	|| break
~  test $i = 5 && ( killall -9 nmbd; killall -9 smbd )
done

David
- --
***********************************************
david.morel at amakuru.net
OpenPGP public key: http://www.amakuru.net/dmorel.asc
28192ef126bc871757cb7d97f4a44536

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+5X6iqr7QF98duCMRAi3GAJ9Y/cAahzQjXWC9hP9K1ny+a5EbcwCgojGS
4o996WAIFZ9C8/vwwOaeUr0=
=xdDY
-----END PGP SIGNATURE-----




More information about the samba mailing list