PDA

View Full Version : PIDFILE should be removed in Redhat init script


hwmpd
28-06-2005, 01:48
In the redhat init script zabbix_agentd_ctl, if the PIDFILE is found, but the process is
not running, the PIDFILE should be removed. Otherwise, when the agent daemon
starts up and attempts to create the pidfile, it will report an error, and exit immediately.

This situation can occur if zabbix agentd is running on a host which crashes (or is
rebooted or experiences a power failure without things being properly stopped).
The PIDFILE is still around, but the process isn't.

Wolfgang
30-06-2005, 14:32
This is also true for a debian install.
Basically, zabbix uses /var/tmp for the pid file. But debian keeps files in the \var tree after a reboot which is compliant to the FHS standard.

The pid files should be located in \tmp which is automatically cleaned after a reboot.

I know that the location of the pid files can be configured in the zabbix config files, but it is not a default in the current release.

To remove the existing pid file in the intit script using "start", is not an option, becaues it could be that there is a running process.
However it could be an option in the init script using "stop" and therefore "restart"