Skip to content

Commit

Permalink
address #64. Patch contributed by soren
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.opennebula.org/one/trunk@304 3034c82b-c49b-4eb3-8279-a7acafdc01c0
  • Loading branch information
ruben committed Jan 17, 2009
1 parent b26deb7 commit fbd02a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions share/scripts/one
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ 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
fi
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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit fbd02a1

Please sign in to comment.