Parent Directory | Revision Log
restart amavis on configuration file change
1 | class amavis { |
2 | |
3 | package { "amavisd-new": |
4 | ensure => installed, |
5 | } |
6 | |
7 | service { "amavisd": |
8 | ensure => running, |
9 | path => "/etc/init.d/amavisd", |
10 | subscribe => [Package["amavisd-new"], File["amavisd.conf"]], |
11 | } |
12 | |
13 | file { "amavisd.conf": |
14 | path => "/etc/amavisd/amavisd.conf", |
15 | ensure => present, |
16 | owner => root, |
17 | group => root, |
18 | mode => 644, |
19 | require => Package["amavisd-new"], |
20 | content => template('amavis/amavisd.conf') |
21 | } |
22 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |