From: Tomasz Pala Date: Wed, 24 Aug 2016 13:43:10 +0000 (+0200) Subject: %service macro prepares NORESTART variable for %systemd_post X-Git-Tag: auto/th/rpm-5.4.15-36~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=commitdiff_plain;h=e801e43 %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. --- 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?