Skip to content

Commit edbb763

Browse files
authored
Merge pull request #2 from babiel/ape_service_reload
feat: Reload postfix config without terminating connections Before this PR, puppet restarts the postfix service which leads to terminated connections for clients on config changes. Only in rare situations a restart of postfix is required to make changes effectiv: http://www.postfix.org/postconf.5.html Changing the restart command to reload is also non-breaking as puppet starts a stopped service on notification by other/depending resources. The default restart command is using systemd as it's the default service management on modern systems. This may be has to be reworked when rebasing babiel/puppet-postfix on bodgit/puppet-postfix to bring this improvement to upstream, but at the moment both projects diverge a lot which will require additional work in the future.
2 parents cd695cb + 83ffc7f commit edbb763

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
$conf_dir = '/etc/postfix'
55
$package_name = 'postfix'
66
$service_name = 'postfix'
7+
$service_reload_command = '/usr/bin/systemctl reload postfix.service'
78

89
case $::osfamily {
910
'RedHat': {

manifests/service.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
enable => true,
77
hasstatus => true,
88
hasrestart => true,
9+
restart => $::postfix::service_reload_command,
910
}
1011
}

0 commit comments

Comments
 (0)