diff --git a/Python/etc/monit/services b/Python/etc/monit/services index 73079e3..a8c89d4 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -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",