Skip to content

Commit

Permalink
Merge pull request #367 from efajardo/master
Browse files Browse the repository at this point in the history
Stopping the service if already stop should be succesfull now
  • Loading branch information
abh3 committed May 17, 2016
2 parents 5204cef + c786d75 commit c2556ae
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packaging/rhel/xrootd.functions
Expand Up @@ -139,10 +139,15 @@ function stopDaemon()
{
echo -n "Shutting down xrootd ($1, $5): "
PIDFILE="/var/run/xrootd/$1-$5.pid"
killproc -p $PIDFILE $1
RETVAL=$?
if [ -e $PIDFILE ]; then
killproc -p $PIDFILE $1
RETVAL=$?
echo
return $RETVAL
fi
echo -n "$1-$5 not running"
echo
return $RETVAL
return 0
}

#-------------------------------------------------------------------------------
Expand Down

0 comments on commit c2556ae

Please sign in to comment.