SPECS: util-vserver.spec - don't assist to start services that are...
glen
glen at pld-linux.org
Thu Oct 20 11:29:39 CEST 2005
Author: glen Date: Thu Oct 20 09:29:39 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- don't assist to start services that are already up in %post
---- Files affected:
SPECS:
util-vserver.spec (1.76 -> 1.77)
---- Diffs:
================================================================
Index: SPECS/util-vserver.spec
diff -u SPECS/util-vserver.spec:1.76 SPECS/util-vserver.spec:1.77
--- SPECS/util-vserver.spec:1.76 Wed Oct 19 13:47:41 2005
+++ SPECS/util-vserver.spec Thu Oct 20 11:29:23 2005
@@ -10,7 +10,7 @@
Summary(pl): Narzędzia dla linuksowych serwerów wirtualnych
Name: util-vserver
Version: 0.30.208
-Release: 2.4
+Release: 2.6
License: GPL
Group: Applications/System
Source0: http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
@@ -356,42 +356,34 @@
%post init
/sbin/chkconfig --add vservers-default
/sbin/chkconfig --add vprocunhide
-#if [ -r /var/lock/subsys/vprocunhide ]; then
-# /etc/rc.d/init.d/vprocunhide restart >&2
-#else
+if [ ! -f /var/lock/subsys/vprocunhide ]; then
echo "Type \"/etc/rc.d/init.d/vprocunhide start\" to set /proc visibility for vservers" 1>&2
-#fi
-#if [ -r /var/lock/subsys/vservers-default ]; then
-# /etc/rc.d/init.d/vservers-default restart >&2
-#else
+fi
+if [ ! -f /var/lock/subsys/vservers-default ]; then
echo "Type \"/etc/rc.d/init.d/vservers-default start\" to start default vservers" 1>&2
-#fi
+fi
%preun init
if [ "$1" = "0" ]; then
- if [ -r /var/lock/subsys/vprocunhide ]; then
+ if [ -r /var/lock/subsys/vprocunhide ]; then
/etc/rc.d/init.d/vprocunhide stop >&2
- fi
- if [ -r /var/lock/subsys/vservers-default ]; then
+ fi
+ if [ -r /var/lock/subsys/vservers-default ]; then
/etc/rc.d/init.d/vservers-default stop >&2
- fi
- /sbin/chkconfig --del vprocunhide
- /sbin/chkconfig --del vservers-default
+ fi
+ /sbin/chkconfig --del vprocunhide
+ /sbin/chkconfig --del vservers-default
fi
%post legacy
/sbin/chkconfig --add rebootmgr
/sbin/chkconfig --add vservers-legacy
-#if [ -r /var/lock/subsys/rebootmgr ] ; then
-# /etc/rc.d/init.d/rebootmgr restart >&2
-#else
+if [ ! -f /var/lock/subsys/rebootmgr ] ; then
echo "Type \"/etc/rc.d/init.d/rebootmgr start\" to start reboot manager for legacy vservers" 1>&2
-#fi
-#if [ -r /var/lock/subsys/vservers-legacy ] ; then
-# /etc/rc.d/init.d/vservers-legacy restart >&2
-#else
+fi
+if [ ! -f /var/lock/subsys/vservers-legacy ] ; then
echo "Type \"/etc/rc.d/init.d/vservers-legacy start\" to start legacy vservers" 1>&2
-#fi
+fi
%preun legacy
if [ "$1" = "0" ]; then
@@ -579,6 +571,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.77 2005/10/20 09:29:23 glen
+- don't assist to start services that are already up in %post
+
Revision 1.76 2005/10/19 11:47:41 glen
- fix macros substititution
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/util-vserver.spec?r1=1.76&r2=1.77&f=u
More information about the pld-cvs-commit
mailing list