Source: postfix
Version: 3.1.0-3.1
Severity: normal
Tags: patch

Hi,

the latest postfix upload added native service files for systemd.
Thanks for that!

It uses a dummy postfix.service and templated [email protected] units
which bind to that postfix.service.
So systemctl restart postfix.service will restart all instances.
I think it would be useful to also propagate the reload request to all
instances, so systemctl reload postfix.service will send this to all
postfix@<>.service instances.

The attached patch does that.

Regards,
Michael



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
>From b8fec81062947b81383e332d105186d12335657e Mon Sep 17 00:00:00 2001
From: Michael Biebl <[email protected]>
Date: Wed, 13 Jul 2016 20:57:55 +0200
Subject: [PATCH] Propagate reload request to postfix@ instances

When running systemctl reload postfix.service, propage the reload
requests to all running instances.

https://www.freedesktop.org/software/systemd/man/systemd.unit.html#PropagatesReloadTo=
---
 debian/[email protected] | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/[email protected] b/debian/[email protected]
index 2b31468..8dadbba 100644
--- a/debian/[email protected]
+++ b/debian/[email protected]
@@ -2,6 +2,7 @@
 Description=Postfix Mail Transport Agent (instance %i)
 Documentation=man:postfix(1)
 PartOf=postfix.service
+ReloadPropagatedFrom=postfix.service
 
 [Service]
 Type=forking
-- 
2.8.1

Reply via email to