samba: nmbd stopping fails once?

Dan Nicholson dbn.lists at gmail.com
Fri Jul 20 05:50:14 PDT 2007


On 7/20/07, Jens Stroebel <drifter at bcsoft.de> wrote:
>                         Hi out there ;-)
>
> I'm experiencing a strange phenomenon when watching the
>
>         /etc/rc.d/init.d/samba stop
>
> happen: the nmbd process seems unwilling to die, needing 2 times
> killproc here.
>
> While shutting down, I don't want UNNESCESSARY failure notices to appear
> on the screen; when using the un-altered blfs init script for samba,
> I get a failure notice for "Stopping nmbd...".
> I changed the killproc line for nmbd to avoid this:
>
> ###################################################################
> boot_mesg "Stopping nmbd..."
>                 killproc /usr/sbin/nmbd || killproc /usr/sbin/nmbd
> ###################################################################

That's strange. I would try running things manually from a shell with
some debugging.

# /usr/sbin/nmbd -D -S -d1
# read pid </var/run/nmbd.pid
# kill $pid

It should die normally from receiving TERM. It could also be some
stupidity in killproc. You may want to try running with tracing to see
if anything weird jumps out.

# . /etc/rc.d/init.d/functions
# set -x
# killproc /usr/sbin/nmbd

--
Dan



More information about the blfs-dev mailing list