SOURCES: util-vserver.init - no need to cd - redirect stderr to dave null
baggins
baggins at pld-linux.org
Sat Nov 22 18:39:31 CET 2008
Author: baggins Date: Sat Nov 22 17:39:31 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- no need to cd
- redirect stderr to dave null
---- Files affected:
SOURCES:
util-vserver.init (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/util-vserver.init
diff -u SOURCES/util-vserver.init:1.3 SOURCES/util-vserver.init:1.4
--- SOURCES/util-vserver.init:1.3 Sat Nov 22 18:01:41 2008
+++ SOURCES/util-vserver.init Sat Nov 22 18:39:26 2008
@@ -32,14 +32,14 @@
{
run_cmd "Stopping all running guests" $_START_VSERVERS -j 1 --all --stop
- xids=$(cd /proc/virtual ; ls -1 | egrep -v 'info|status')
+ xids=$(ls -1 /proc/virtual 2>/dev/null | egrep -v 'info|status' 2>/dev/null)
if [ -n "$xids" ]; then
show "Sending all contexts the TERM signal"
for xid in $xids; do
$_VATTRIBUTE --xid $xid --set --flag ~persistent
$_VKILL --xid $xid -s 15
done
- xids=$(cd /proc/virtual ; ls -1 | egrep -v 'info|status')
+ xids=$(ls -1 /proc/virtual 2>/dev/null | egrep -v 'info|status' 2>/dev/null)
if [ -n "$xids" ]; then
fail
else
@@ -53,7 +53,7 @@
$_VATTRIBUTE --xid $xid --set --flag ~persistent
$_VKILL --xid $xid -s 9
done
- xids=$(cd /proc/virtual ; ls -1 | egrep -v 'info|status')
+ xids=$(ls -1 /proc/virtual 2>/dev/null | egrep -v 'info|status' 2>/dev/null)
if [ -n "$xids" ]; then
fail
else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/util-vserver.init?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list