From e801e437fae32d74d542a9fe49d0b727d3846a83 Mon Sep 17 00:00:00 2001 From: Tomasz Pala Date: Wed, 24 Aug 2016 15:43:10 +0200 Subject: [PATCH] %service macro prepares NORESTART variable for %systemd_post Since rpm-build-macros 2aa558856f3867c114d738121603d471b82a0dec package having both %service and %systemd_post would omit try-restart when said so here. I'm not good at terse elaborating it, feel free to adjust note. --- rpm.sysconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpm.sysconfig b/rpm.sysconfig index 60464e6..9ba62a9 100644 --- a/rpm.sysconfig +++ b/rpm.sysconfig @@ -11,8 +11,11 @@ RPM_USERDEL=yes # Should automatic restarts from rpm upgrades be skipped? # You can also disable this per service, if service supports it from # /etc/sysconfig/SERVICE -# This is NOT used by %systemd_service_{restart,reload} nor %systemd_post -# (which issues try-restart unless package itself contains NORESTART). +# This is NOT used by %systemd_service_{restart,reload}. %systemd_post +# issues try-restart unless package itself contains NORESTART or +# %service macro before exists (maps value below to NORESTART). I.e. +# %systemd_post honours this setting only after %service, while +# %service-less packages would try-restart anyway. #RPM_SKIP_AUTO_RESTART=yes # Should package upgrades enable systemd service? -- 2.43.0