/etc/init.d/nagios stop does not stop/kill nagios


#1

Hi

My nagios seems working fine and /etc/init.d/nagios start works fine when no nagios process is running but…

when I want to stop, I give /etc/init.d/nagios stop

IT DOES NOT Seem to kill or stop running nagios process

example,
1 STEP
ps -ef | grep nagios
nagios 15993 1 0 09:37 ? 00:00:00 /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg
root 16410 20543 0 09:52 pts/5 00:00:00 grep --colour=auto nagios

2 STEP
/etc/init.d/nagios stop

  • Stopping nagios … ok ]

3 STEP
ps -ef | grep nagios
nagios 15993 1 0 09:37 ? 00:00:00 /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg
root 16454 20543 0 09:52 pts/5 00:00:00 grep --colour=auto nagios

so process 15993 is still running after stop

I have to kill using killall -9 nagio all time

attaching my nagios startup script here.

Please help

thank you