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

Thu May 20 23:55:29 UTC 2010
Jerry Franz <jfranz at freerun.com>

On 05/20/2010 04:46 PM, Whit Blauvelt wrote:
> Also, since "sh /etc/init.d/smb (re)start" works but "/etc/init.d/smb
> (re)start" doesn't, I can't see how the difference between those two
> invocations would change the handling of the lock files. It's still the same
> script being run. Just some change in the environment whose subtlety escapes
> me.
I would start by comparing the values of all the environment variables 
between running as /bin/sh and /bin/bash:

env > bash_env.txt
env > sh_env.txt
diff bash_env.txt sh_env.txt

Benjamin Franz