]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/raidmpt/manifests/init.pp
try sigint
[dsa-puppet.git] / modules / raidmpt / manifests / init.pp
1 class raidmpt {
2     package {
3         mpt-status: ensure => installed;
4     }
5
6     file {
7         "/etc/default/mpt-statusd":
8             content =>  "# This file is under puppet control\nRUN_DAEMON=no\n",
9             notify  => Exec["mpt-statusd-stop"],
10             ;
11     }
12     exec {
13         "mpt-statusd-stop":
14             command => 'pidfile=/var/run/mpt-statusd.pid; ! [ -e "$pidfile" ] || /sbin/start-stop-daemon --oknodo --stop --signal INT --quiet --pidfile "$pidfile"; rm -f "$pidfile"',
15             refreshonly => true,
16             ;
17     }
18 }
19 # vim:set et:
20 # vim:set ts=4:
21 # vim:set shiftwidth=4: