1 # = Class: hardware::raid::raidmpt
3 # This class installs mpt-status and ensures the daemon is not running
7 # include hardware::raid::raidmpt
9 class hardware::raid::raidmpt {
11 package { 'mpt-status':
15 file { '/etc/default/mpt-statusd':
16 content => "# This file is under puppet control\nRUN_DAEMON=no\n",
17 notify => Exec['mpt-statusd-stop'],
20 exec { 'mpt-statusd-stop':
21 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"',
25 package { 'mpt-status':
29 file { '/etc/default/mpt-statusd':