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