From d0a4b95ffd8b84381f1be3c99765f6b22a0796bc Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Tue, 23 Oct 2012 03:02:06 +0200 Subject: [PATCH] [monit/mumudvb] Monitoring process par process Ignore-this: 3ae2546db624bea7217eb0698fbc0a30 Parce que c'est pas terrible de relancer tous les process quand un seul est perdu. -- J'ai perdu. darcs-hash:20121023010206-28565-66c2c65c3f641c6fdc2b5d409ffd604ba7a16b98.gz --- Python/etc/monit/services | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Python/etc/monit/services b/Python/etc/monit/services index 0cfb687..ec82d38 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -200,7 +200,10 @@ for i in range(0,dernierecarte): service("mumudvb", name = "mumudvb%d" % i, init = "mumudvb", - pidf = "mumudvb/mumudvb_adapter%d_tuner0" % i) + pidf = "mumudvb/mumudvb_adapter%d_tuner0" % i, + start_cmd = """/sbin/start-stop-daemon --start --oknodo --pidfile /var/run/mumudvb/mumudvb_adapter%d_tuner0.pid --chuid _mumudvb --exec /usr/bin/mumudvb -- -c /etc/sat/carte%d.conf""" % (i,i), + stop_cmd = """/sbin/start-stop-daemon --stop --pidfile /var/run/mumudvb/mumudvb_adapter%d_tuner0.pid""" % i + ) @check file file/var/log/syslog with path /var/log/syslog @ if timestamp > 15 minutes then alert