[CentOS] Odd failure of smbd to start from init.d - CentOS 5.4

Thu May 20 22:49:33 UTC 2010
Kwan Lowe <kwan.lowe at gmail.com>

On Thu, May 20, 2010 at 5:41 PM, Whit Blauvelt <whit at transpect.com> wrote:
> More data:
>
> "service smb restart" - does NOT get smbd running (although shows "OK")
>
> "sh /etc/init.d/smb restart" - DOES get smbd running
>
> The "service" man page claims the only environment variables it passes are
> LANG and TERM. But that can't be the key, since
>
> "/etc/init.d/smb restart" - does NOT get smbd running (although shows "OK")
>
> For that matter
>
> "bash /etc/init.d/smb restart" - DOES get smbd running
>
> Changing the first line of init.d/smb to /bin/bash from /bin/sh changes all
> this not at all.
>
> What the heck can this be?

The service scripts can check for lock files.  Do you have any stale
locks in /var/run/subsys?