]> gitweb.fluxo.info Git - puppet-smartmontools.git/commitdiff
Renaming service
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 27 Jan 2010 16:25:03 +0000 (14:25 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 27 Jan 2010 16:25:03 +0000 (14:25 -0200)
manifests/init.pp

index 083492b7ccbcfa6f97d65de17de7b84d3f2a4aea..8bafa95caed182222e8d3181712e23900ec9bcfd 100644 (file)
@@ -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"] ],
   }