summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 083492b..8bafa95 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -48,13 +48,14 @@ class smartmontools {
owner => root,
group => root,
mode => 0644,
- notify => Service["smartd"],
+ notify => Service["smartmontools"],
source => "puppet://$server/modules/smartmontools/default/smartmontools",
}
- service { "smartd":
+ service { "smartmontools":
enable => true,
hasrestart => true,
+ pattern => "/usr/sbin/smartd",
ensure => running,
require => [ File["/etc/default/smartmontools"], Package["smartmontools"] ],
}