X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fraidmpt%2Fmanifests%2Finit.pp;h=c6884aa8ea03612534525cd249014df60d5f7ce8;hb=3eb533e5499e66423bafdedaf6c7d08ead1772de;hp=168e2a78cce1f845eeae0afc76b8f390e8ac43d8;hpb=6606ea4f2c165751d808ab70435a2d3151f9f5b1;p=dsa-puppet.git diff --git a/modules/raidmpt/manifests/init.pp b/modules/raidmpt/manifests/init.pp index 168e2a78..c6884aa8 100644 --- a/modules/raidmpt/manifests/init.pp +++ b/modules/raidmpt/manifests/init.pp @@ -1,21 +1,16 @@ class raidmpt { - package { - mtp-status: ensure => installed; - } - file { - "/etc/default/mpt-statusd": - content => "# This file is under puppet control\nRUN_DAEMON=no", - notify => Exec["mpt-statusd-stop"], - ; - } - exec { - "mpt-statusd-stop": - command => 'pidfile=/var/run/mpt-statusd.pid; ! [ -e "$pidfile" ] || /sbin/start-stop-daemon --oknodo --stop --quiet --pidfile "$pidfile"; rm -f "$pidfile"', - refreshonly => true, - ; - } + package { 'mpt-status': + ensure => installed + } + + file { '/etc/default/mpt-statusd': + content => "# This file is under puppet control\nRUN_DAEMON=no\n", + notify => Exec['mpt-statusd-stop'], + } + + exec { 'mpt-statusd-stop': + 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, + } } -# vim:set et: -# vim:set ts=4: -# vim:set shiftwidth=4: