[monit/services] netacct-sixxs2 depends on aiccu

http://mmonit.com/monit/documentation/monit.html#dependencies
This commit is contained in:
Daniel STAN 2013-08-09 15:40:15 +02:00
parent 8f1e36836a
commit 459d3f83fe

View file

@ -35,6 +35,8 @@ check process %(name)s with pidfile %(pidp)s
if line:
print " ", line
print " if %d restarts within 5 cycles then timeout" % max_restart
if kw.has_key('depends_on'):
print " depends on " + ', '.join(kw['depends_on'])
print
service("apache",
@ -141,7 +143,9 @@ if has("comptage-upload"):
service(None,
name="netacct-crans-sixxs2",
pidf="netacct-crans-sixxs2",
init="netacct-crans-sixxs2")
init="netacct-crans-sixxs2",
depends_on=['aiccu'],
)
service(None,
name="mac_ip",
pidf="mac_ip",