rc-scripts/trunk/rc.d/init.d/functions

baggins cvs at pld-linux.org
Thu Nov 17 23:54:42 CET 2005


Author: baggins
Date: Thu Nov 17 23:54:39 2005
New Revision: 6540

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- fixed vserver detection with legacy vserver code turned off


Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions	(original)
+++ rc-scripts/trunk/rc.d/init.d/functions	Thu Nov 17 23:54:39 2005
@@ -52,7 +52,7 @@
 [ -z "$COLUMNS" ] && COLUMNS=80
 
 if [ -z "$VSERVER" -o "$VSERVER" = "detect" ]; then
-	_ctx="$(awk '/s_context:.*/ { print $2 }' /proc/self/status 2>/dev/null)"
+	_ctx="$(awk '/(s_context|VxID):.*/ { print $2 }' /proc/self/status 2>/dev/null)"
 	if [ -z "$_ctx" -o "$_ctx" = "0" ]; then
 		VSERVER=no
 	else



More information about the pld-cvs-commit mailing list