author | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Fri, 7 Nov 2014 12:56:21 +0000 (13:56 +0100) | ||
committer | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Tue, 11 Nov 2014 09:24:26 +0000 (10:24 +0100) | ||
commit | ff270e6d53374bddca9f3fe0bb7a8c2294548edc | |
tree | cef17c8116e23ded8164926d35c334e7b3ea717c | tree | snapshot |
parent | 3b618a331d47fa5868f414b42439f7a0f08667cd | commit | diff |
Support both systemd and upstart.
This checks appropriate environment variables. When supervised
by either upstart or systemd, collectd will not daemonize but
will signal readyness with the appropriate method.
This allows collectd to be either configured with `expect stop`
in upstart or `Type=notify` with systemd.
The rationale for this is detailed here: http://spootnik.org/entries/2014/11/09_pid-tracking-in-modern-init-systems.html
This checks appropriate environment variables. When supervised
by either upstart or systemd, collectd will not daemonize but
will signal readyness with the appropriate method.
This allows collectd to be either configured with `expect stop`
in upstart or `Type=notify` with systemd.
The rationale for this is detailed here: http://spootnik.org/entries/2014/11/09_pid-tracking-in-modern-init-systems.html
src/daemon/collectd.c | diff | blob | history |