Good Morning,
This is on RHEL 5.4.
First clue: Three lines in /var/log/messages, Every 5 Minutes:
Code:
[Daemon name redacted]: Daemon started
last message repeated 9 times
init: Id "mp" respawning too fast: disabled for 5 minutes
Second clue: Run multiple ps commands. The daemon is running.
Code:
# ps -ef | grep [Redacted] | grep -v grep
root 21519 1 0 Jun08 ? 00:02:48 [Redacted]
Third clue: Re run the ps commands before and after one of these message triplets in /var/log/messages. The PID of the daemon does not change! Therefore, the process is not, in fact, being stopped and restarted.
Fourth clue: The relevant line in /etc/inittab:
Code:
mp:12345:respawn:/usr/sbin/[SubDir]/[Daemon]
Fifth clue: The execution line in the inittab entry is identical to the path and daemon name in the ps output's CMD field.
Problem: Why is init trying to respawn a running process? how do I tell it to stop making the inappropriate attempt, without removing the ability to restart the process when it ~does~ die?!
Thanks!
dafydd
PS: Occasionally, this daemon does die, which means we have to wait up to five minutes for it to respawn. In testing, the respawn is successful after the five minute wait, although I still get the "last message repeated 9 times" output with no decrease in the number of repeats. I have reports that the respawn fails, in that the daemon is never restarted. I've yet to recreate that problem.