[packages/xen] xenstored must not be ever stopped

jajcus jajcus at pld-linux.org
Fri Nov 9 16:10:46 CET 2012


commit faf14bb1c6f83c19d13410d98bd267299f1b17a9
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Fri Nov 9 16:09:33 2012 +0100

    xenstored must not be ever stopped
    
    %%systemd_post, even with NORESTART set, seems to suggest that
    %restarting the service might be a good idea… (it is not)

 xen.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/xen.spec b/xen.spec
index c0cf753..e171083 100644
--- a/xen.spec
+++ b/xen.spec
@@ -483,7 +483,13 @@ rm -rf $RPM_BUILD_ROOT
 /sbin/chkconfig --add xenconsoled
 /sbin/chkconfig --add xenstored
 /sbin/chkconfig --add xendomains
-%systemd_post xen-watchdog.service xenconsoled.service xenstored.service
+%systemd_post xen-watchdog.service xenconsoled.service
+
+export NORESTART=1
+%systemd_post xenstored.service
+if [ $1 -ne 1 ] ; then
+	/bin/systemd_booted && echo "xenstored.service must not be restarted, ever!" || :
+fi
 
 %preun
 if [ "$1" = "0" ]; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xen.git/commitdiff/faf14bb1c6f83c19d13410d98bd267299f1b17a9



More information about the pld-cvs-commit mailing list