From 8a7d39c3e63ba7e81a8eb2276b2e16b489fb08cc Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 30 Nov 2018 01:19:00 -0500 Subject: restart smartd when smartd.conf is updated --- modules/smartmontools/manifests/init.pp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/smartmontools') diff --git a/modules/smartmontools/manifests/init.pp b/modules/smartmontools/manifests/init.pp index b79c1a2..e45f151 100644 --- a/modules/smartmontools/manifests/init.pp +++ b/modules/smartmontools/manifests/init.pp @@ -10,9 +10,7 @@ class smartmontools { service { 'smartd': ensure => running, enable => true, - require => [ - Package['smartmontools'], - File['/etc/smartd.conf'], - ] + require => Package['smartmontools'], + subscribe => File['/etc/smartd.conf']; } } -- cgit v1.2.3-54-g00ecf