[packages/rpm] %service macro prepares NORESTART variable for %systemd_post

gotar gotar at pld-linux.org
Wed Aug 24 15:47:30 CEST 2016


commit e801e437fae32d74d542a9fe49d0b727d3846a83
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Wed Aug 24 15:43:10 2016 +0200

    %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?
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/e801e437fae32d74d542a9fe49d0b727d3846a83



More information about the pld-cvs-commit mailing list