From 83ffc7f5bf3d094228357ec195ae61b949c680aa Mon Sep 17 00:00:00 2001 From: Armin Pech Date: Thu, 2 Dec 2021 15:24:33 +0100 Subject: [PATCH] feat: Reload postfix config without terminating connections --- manifests/params.pp | 1 + manifests/service.pp | 1 + 2 files changed, 2 insertions(+) diff --git a/manifests/params.pp b/manifests/params.pp index a36a554..a6d4c90 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -4,6 +4,7 @@ $conf_dir = '/etc/postfix' $package_name = 'postfix' $service_name = 'postfix' + $service_reload_command = '/usr/bin/systemctl reload postfix.service' case $::osfamily { 'RedHat': { diff --git a/manifests/service.pp b/manifests/service.pp index 8162a5b..ec16c0c 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -6,5 +6,6 @@ enable => true, hasstatus => true, hasrestart => true, + restart => $::postfix::service_reload_command, } }