mirror of
https://github.com/collectd/collectd.git
synced 2026-02-09 04:09:15 +08:00
upstart example config: clarify expect stanza ambiguity
This commit is contained in:
@@ -33,7 +33,8 @@ stop on runlevel [!2345]
|
||||
env DAEMON=/usr/sbin/collectd
|
||||
|
||||
# Tell upstart to wait for collectd to SIGSTOP itself, signaling it is ready
|
||||
# to run.
|
||||
# to run. Warning: this only works with collectd 5.5 and newer. You'll have to
|
||||
# use "expect fork" instead, if using collectd 5.4 and older.
|
||||
expect stop
|
||||
|
||||
# prevent thrashing - 10 restarts in 5 seconds
|
||||
@@ -46,5 +47,5 @@ respawn limit 10 5
|
||||
|
||||
# The daemon will not start if the configuration is invalid.
|
||||
pre-start exec $DAEMON -t
|
||||
# Let's Fork!
|
||||
# Let's start!
|
||||
exec $DAEMON
|
||||
|
||||
Reference in New Issue
Block a user