Skip to content

Commit

Permalink
Restart postfix instead of reload after package installation (Fixes #90)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanevet committed Jun 22, 2015
1 parent e97da20 commit 5032358
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/service.pp
@@ -1,4 +1,10 @@
class postfix::service {
exec { 'restart postfix after packages install':
command => regsubst($::postfix::params::restart_cmd, 'reload', 'restart'),
refreshonly => true,
subscribe => Package['postfix'],
require => Class['postfix::files'],
}
service { 'postfix':
ensure => running,
enable => true,
Expand Down

0 comments on commit 5032358

Please sign in to comment.