Skip to content

Commit

Permalink
[RPM] Fix init script bad exit code, fixes #536
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jul 5, 2017
1 parent d25409d commit 4186e12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packaging/rhel/xrootd.functions
Expand Up @@ -296,7 +296,8 @@ function handleDaemons()
continue
fi
$CMD_HANDLER $DAEMON $EXEC_RUN "$XROOTD_USER" "$XROOTD_GROUP" $INSTANCE "$OPTS"
if test $? -ne 0; then
STATUS=$?
if test $? -ne 0 && "$CMD_HANDLER" != "statusOfTheDaemon"; then
STATUS=1
fi
done
Expand Down

0 comments on commit 4186e12

Please sign in to comment.