]> git.pld-linux.org Git - packages/rpm.git/commitdiff
%service macro prepares NORESTART variable for %systemd_post
authorTomasz Pala <gotar@pld-linux.org>
Wed, 24 Aug 2016 13:43:10 +0000 (15:43 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Wed, 24 Aug 2016 13:43:10 +0000 (15:43 +0200)
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

index 60464e6cfd438c8e9d1007be7642e2388783cf7d..9ba62a953cfec1205ea3dde7d3391f8896d48a48 100644 (file)
@@ -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
 # 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?
 #RPM_SKIP_AUTO_RESTART=yes
 
 # Should package upgrades enable systemd service?
This page took 0.035091 seconds and 4 git commands to generate.