"System V" scripts not working properly sometimes
I have strange problem. Some services when run on Centos 32bit, 5.2 via service command behave abnormally. For example - Nagios when run as root from command prompt works normally, when in daemon mode - not (exits). Samba when run from prompt - work wonderfully, when via service smb start - is not serving files.
Had 2 guess:
1. when run via service command - wrong config file is read (Nagios especially has this I think)
2. or running via service command can be affected by SELinux or something?
Googled this, but without any luck. Any thoughts?