From b6bb9e91ccadcfc9f23164538e726fec61dcad6e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 26 Aug 2010 17:21:41 -0300 Subject: Managing service sympa --- manifests/sympa.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/sympa.pp b/manifests/sympa.pp index 18e8c9a..1e76936 100644 --- a/manifests/sympa.pp +++ b/manifests/sympa.pp @@ -45,6 +45,13 @@ class mail::sympa inherits mail::regexps { require => Group['sympa'], } + service { "sympa": + enable => true, + ensure => running, + hasstatus => false, + pattern => '/usr/lib/sympa/bin/sympa.pl', + } + file { "/etc/sympa": ensure => directory, owner => postfix, @@ -59,7 +66,7 @@ class mail::sympa inherits mail::regexps { mode => 0640, content => template('mail/sympa/sympa.conf.erb'), require => [ File['/etc/sympa'], User['sympa'] ], - notify => Service['apache'], + notify => Service['apache', 'sympa'], } File["/etc/postfix/transport_regexp"] { -- cgit v1.2.3