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.
What shell does the script specify at the top and what is found following $PATH?