Skip to content

Commit

Permalink
Stopping the service if already stop should be succesfull now
Browse files Browse the repository at this point in the history
  • Loading branch information
efajardo committed May 17, 2016
1 parent 5204cef commit c786d75
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 c786d75

Please sign in to comment.