When samba is turned off (during shutdown) the script says it cannot close proccess xxxx (some number). By changing a few lines in the script I was able to fix this. Those lines are: (in the function stop) Before: start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid and start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid I changed to: start-stop-daemon --start --quiet --exec /usr/sbin/smbd and start-stop-daemon --start --quiet --exec /usr/sbin/nmbd Doing this fixed the problem and samba nows starts and stopps normally.
_why_ is it not working on your system is the question. it works fine here. killing by PID is "more" correct. im not accepting this. you need to figure out why it's not working for you, because it should be.
could be a new issue with sys-apps/baselayout-1.8.5.8 nice and some init script are not working property with this version
looks like this is FIXED on CVS in rc-scripts.
I realized I could not start SAMBA no more yesterday: in fact, samba started without error, but there were no smbd/nmbd daemons running. I did a modif to /etc/conf.d/samba too, but not the same. Changed lines: smbd_start="start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- ${smbd_start_options}" nmbd_start="start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- ${nmbd_start_options}" To: smbd_start="start-stop-daemon --start --verbose --exec /usr/sbin/smbd --make-pidfile \ --pidfile /var/run/samba/smbd.pid -- ${smbd_start_options}" nmbd_start="start-stop-daemon --start --verbose --exec /usr/sbin/nmbd --make-pidfile \ --pidfile /var/run/samba/smbd.pid -- ${nmbd_start_options}" And now that I created this /var/run/samba directory, everything works fine, /etc/init.d/samba start/stop run smoothly.