amonapp / amonagent

Single binary agent for Linux
https://amon.cx
MIT License
48 stars 21 forks source link

Amonagent failing to restart / monitoring within RedHat / Fedora with systemd #30

Open romanqs opened 6 years ago

romanqs commented 6 years ago

Seems that at some point, whenever systemd evolved - it now able to follow up by himself over pid files. And old start line of service that looks like ExecStart=/usr/bin/amonagent -pidfile /var/run/amonagent/amonagent.pid making amon to respawn multiple times in endless loop - and then to fail, when systemd decides that service is dead.

Changing service file to have this lines ExecStart=/usr/bin/amonagent PIDFile=/var/run/amonagent/amonagent.pid brings up normal monitoring for systemd and single spawn of trackable service.

This seems to be happen only with newer version of amon >0.7.5 and Fedora 23 and up