>Real sorry about this. I should have fixed it months ago. The problem
>is that the samba script calls our killproc() function, which
>basically just finds any process named what we asked it and start
>killing it. The problem is that you have multiple nmbd and smbd
>processes. 

Dan, while you're at it, httpd also spawns children.

Paul Rogers  ([EMAIL PROTECTED])
http://www.xprt.net/~pgrogers/
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL :-)


-- [EMAIL PROTECTED] wrote:
Send blfs-support mailing list submissions to
        [EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
        http://linuxfromscratch.org/mailman/listinfo/blfs-support
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of blfs-support digest..."


Today's Topics:

   1. samba init script barfs when stopping (Alan Lord)
   2. Re: samba init script barfs when stopping (Dan Nicholson)


----------------------------------------------------------------------

Message: 1
Date: Wed, 17 Oct 2007 09:17:27 +0100
From: Alan Lord <[EMAIL PROTECTED]>
Subject: samba init script barfs when stopping
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed

I have a recent (LFS-63, blfs-book-svn-html-2007-09-12, 
blfs-bootscripts-20070822) system and all seems fairly fine.

However, whenever I shut the system down, the samba script fails 
stopping nmbd /etc/rc.d/rc6.d/K48samba with return value of 4.

When restarting, there are no errors.

The annoying thing is that I have to hit "enter" on the *console* to get 
past the failed shutdown process so the system completes the shutdown 
properly. This is a bit of a PITA.

Here's a typical snapshot of current processes

  1148 ?        00:00:00 nmbd
  1149 ?        00:00:00 nmbd
  1152 ?        00:00:00 smbd
  1159 ?        00:00:00 inadyn
  1173 ?        00:00:00 smbd

The nmbd.pid file contains 1148 and the smbd.pid file contains 1152.

Anyone got any ideas what could be the problem?

Cheers

Alan

-- 
The way out is open!
http://www.theopensourcerer.com



------------------------------

Message: 2
Date: Wed, 17 Oct 2007 20:43:17 -0700
From: "Dan Nicholson" <[EMAIL PROTECTED]>
Subject: Re: samba init script barfs when stopping
To: "BLFS Support List" <[EMAIL PROTECTED]>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

On 10/17/07, Alan Lord <[EMAIL PROTECTED]> wrote:
> I have a recent (LFS-63, blfs-book-svn-html-2007-09-12,
> blfs-bootscripts-20070822) system and all seems fairly fine.
>
> However, whenever I shut the system down, the samba script fails
> stopping nmbd /etc/rc.d/rc6.d/K48samba with return value of 4.
>
> When restarting, there are no errors.
>
> The annoying thing is that I have to hit "enter" on the *console* to get
> past the failed shutdown process so the system completes the shutdown
> properly. This is a bit of a PITA.
>
> Here's a typical snapshot of current processes
>
>   1148 ?        00:00:00 nmbd
>   1149 ?        00:00:00 nmbd
>   1152 ?        00:00:00 smbd
>   1159 ?        00:00:00 inadyn
>   1173 ?        00:00:00 smbd
>
> The nmbd.pid file contains 1148 and the smbd.pid file contains 1152.
>
> Anyone got any ideas what could be the problem?

Which to kill? Well, we know because the parent process pid
is recorded in /var/run/[sn]mbd.pid. If we send the parent the TERM
signal, it will safely kill off the child processes and clean up. If
we send them both TERM signals, well, you see the result.

So, change the killprocs to "killproc -p <pidfile>", substituting the
correct pidfile for the executable you're trying to kill.

Does that help?

--
Dan


------------------------------

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

End of blfs-support Digest, Vol 1389, Issue 1
*********************************************


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to