one accepts only TERM, the other only INT
authorPeter Palfrader <peter@palfrader.org>
Sun, 28 Feb 2010 20:28:46 +0000 (21:28 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 28 Feb 2010 20:28:46 +0000 (21:28 +0100)
modules/raidmpt/manifests/init.pp

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