On 7/20/07, Jens Stroebel <[EMAIL PROTECTED]> 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
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to