Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the exit 0 at the end of the script means we will always exit with 0 #1152

Closed
wants to merge 13 commits into from
Closed

Conversation

jessp01
Copy link

@jessp01 jessp01 commented Apr 28, 2014

which means the return 1 statements are useless.

which means the return 1 statements are useless.
currently, it will return 1 in line 80
echo "Service batch isn't running but stale lock file exists"
echo "Removing stale lock file at $LOCKFILE"
rm -f $LOCKFILE
start_scheduler
return 1

Regardless of the actual result.
customary to reflect the status in the output.
good for say, getting it by mail, or when running from CLI or when you
are color blind looking at the Nagios I/F :)
reported by Martin Schygulla from SAP.
never use short tags.
@jessp01
Copy link
Author

jessp01 commented May 15, 2014

reverting changes and will open a pull per fix in separate branches. sigh

@jessp01 jessp01 closed this May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants