From fbd02a1caad6872949cef6d5afaafe8ae65c0129 Mon Sep 17 00:00:00 2001 From: ruben Date: Sat, 17 Jan 2009 21:37:02 +0000 Subject: [PATCH] address #64. Patch contributed by soren git-svn-id: http://svn.opennebula.org/one/trunk@304 3034c82b-c49b-4eb3-8279-a7acafdc01c0 --- share/scripts/one | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/scripts/one b/share/scripts/one index b1c31f8..72c0f56 100755 --- a/share/scripts/one +++ b/share/scripts/one @@ -32,7 +32,7 @@ setup() if [ -f $LOCK_FILE ]; then if [ -f $ONE_PID ]; then ONEPID=`cat $ONE_PID` - ps $ONEPID &> /dev/null + ps $ONEPID > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "ONE is still running (PID:$ONEPID). Please try 'one stop' first." exit 1 @@ -40,7 +40,7 @@ setup() fi if [ -f $ONE_SCHEDPID ]; then ONESCHEDPID=`cat $ONE_SCHEDPID` - ps $ONESCHEDPID &> /dev/null + ps $ONESCHEDPID > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "The scheduler is still running (PID:$ONEPID). Please try 'one stop' first." exit 1 @@ -117,11 +117,11 @@ stop() # Kill the one daemon - kill `cat $ONE_PID` &> /dev/null + kill `cat $ONE_PID` > /dev/null 2>&1 # Kill the scheduler - kill `cat $ONE_SCHEDPID` &> /dev/null + kill `cat $ONE_SCHEDPID` > /dev/null 2>&1 # Remove pid files