[rpld] Fixing the initscript

Paul Komkoff stingray at fedoraproject.org
Mon Nov 28 18:16:21 UTC 2011


commit 801346c423ca33184d88d2b2ad7d2678987cbd96
Author: Paul P. Komkoff <i at stingr.net>
Date:   Mon Nov 28 21:56:15 2011 +0400

    Fixing the initscript

 rpld.spec |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rpld.spec b/rpld.spec
index c0f3d4c..5c61f8a 100644
--- a/rpld.spec
+++ b/rpld.spec
@@ -37,7 +37,7 @@ Summary: SysV init script for %{name}.
 %description sysvinit
 SysV init script for %{name}.
 
-%triggerpostun -n rpld-sysvinit -- %{rpld} < 1.8-0.12.beta1
+%triggerpostun -n %{name}-sysvinit -- %{name} < 1.8-0.12.beta1
 /sbin/chkconfig --add httpd >/dev/null 2>&1 || :
 
 %post
@@ -58,10 +58,10 @@ fi
 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
 if [ $1 -ge 1 ] ; then
     # Package upgrade, not uninstall
-    /bin/systemctl try-restart rpld.service >/dev/null 2>&1 || :
+    /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
 fi
 
-%triggerun -- rpld < 1.8-0.12.beta1
+%triggerun -- %{name} < 1.8-0.12.beta1
 /usr/bin/systemd-sysv-convert --save %{name} >/dev/null 2>&1 ||:
 /sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
 /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :


More information about the scm-commits mailing list