]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Managing services clamd and freshclam
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 20 Aug 2010 21:24:00 +0000 (18:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 20 Aug 2010 21:24:00 +0000 (18:24 -0300)
manifests/clamav.pp

index b2f8ef4354d88185b2073b09345077f05f41ec7e..33ae0e3545b48326fd6c879d54aa0d4e8ad09f79 100644 (file)
@@ -9,4 +9,16 @@ class mail::clamav {
     groups  => [ 'amavis' ],
     require => Group['clamav', 'amavis'],
   }
+
+  service { "clamav-daemon":
+    enable  => true,
+    ensure  => running,
+    pattern => "/usr/sbin/clamd",
+  }
+
+  service { "clamav-freshclam":
+    enable  => true,
+    ensure  => running,
+    pattern => "/usr/bin/freshclam",
+  }
 }