]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
kill the daemon watcher for mpt-statusd as well
authorPeter Palfrader <peter@palfrader.org>
Sun, 28 Feb 2010 20:26:00 +0000 (21:26 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 28 Feb 2010 20:26:00 +0000 (21:26 +0100)
modules/raidmpt/manifests/init.pp

index 26e4d84c4bd05f7bf3c5482b409bd6550b6116fb..ac5939827f5a5d24cb70b028968b925afcd493c4 100644 (file)
@@ -11,7 +11,7 @@ class raidmpt {
     }
     exec {
         "mpt-statusd-stop":
-            command => 'pidfile=/var/run/mpt-statusd.pid; ! [ -e "$pidfile" ] || /sbin/start-stop-daemon --oknodo --stop --signal INT --quiet --pidfile "$pidfile"; rm -f "$pidfile"',
+            command => 'pidfile=/var/run/mpt-statusd.pid; ! [ -e "$pidfile" ] || /sbin/start-stop-daemon --oknodo --stop --signal INT --quiet --pidfile "$pidfile"; rm -f "$pidfile";  pkill -INT  -P 1 -u 0 -f "/usr/bin/daemon /etc/init.d/mpt-statusd check_mpt"',
             refreshonly => true,
             ;
     }