| Summary: | Stopping nagios leaves running processes | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Michal Margula <alchemyx> |
| Component: | New packages | Assignee: | Gentoo Netmon project <netmon> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | 2004.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Michal Margula
2004-11-04 05:52:01 UTC
No. It should be very controlled, so killall can't be used. Can you make this change in /etc/init.d/nagios: insert this line between 41 and 42 (After stop() ): einfo "Nagios PID: $(< /var/nagios/nagios.lock)" This will show you the PID it is stopping. Then when you stop - update the report if it correspond to the process which is still running or not. I've had this problem myself in the original /etc/init.d/ script, but not on gentoo. It was lines 21 and 22 :) I had lock file for nagios in other place, now changed and watching what happens: root@gollum alchemyx # /etc/init.d/nagios stop * Nagios PID: 30077 * Stopping nagios... [ ok ] root@gollum alchemyx # dmesg root@gollum alchemyx # ps aux | grep nagios nagios 773 0.0 0.3 4592 3112 ? S 23:12 0:00 /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg nagios 777 0.0 0.3 4592 3112 ? S 23:12 0:00 /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg And few more running processes. And after few moments they dissaper. So now is everything fine. My fault then, sorry! By the way - why script wasn't complaining about missing lock? Great, good idea. Thank you! |