summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 085aaee)
raw | patch | inline | side by side (parent: 085aaee)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 19 Nov 2014 10:14:18 +0000 (11:14 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 19 Nov 2014 11:08:12 +0000 (12:08 +0100) |
Hopefully avoid some confusion for RHEL6 users which have an old upstart
version.
version.
contrib/upstart.collectd.conf | patch | blob | history |
index c175ee6883e5288d742af3939a8edbd4a47a34b8..69032a5175496affe39a43546464e78fd0ebc8b5 100644 (file)
# these cannot be started at boot time by the system without
# arcane trickery. Also a root user will not see these tasks/jobs
# by default. set*id is a reasonable and secure compromise.
+# These options are not supported on early upstart versions.
#setuid nobody
#setgid nobody
# shell commands via `sh -e`.
env DAEMON=/usr/sbin/collectd
-# Tell upstart to watch for forking when tracking the pid for us.
+# Tell upstart to wait for collectd to SIGSTOP itself, signaling it is ready
+# to run.
expect stop
# prevent thrashing - 10 restarts in 5 seconds
respawn
respawn limit 10 5
-# Make a log available in /var/log/upstart/collectd.log
-console log
+# Uncomment to make a log available in /var/log/upstart/collectd.log
+# (not supported on early upstart versions).
+#console log
# The daemon will not start if the configuration is invalid.
pre-start exec $DAEMON -t