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

Changes init script exit code to conform to lsb standards #1020

Merged
merged 1 commit into from
Oct 10, 2014

Conversation

spuder
Copy link
Contributor

@spuder spuder commented Oct 10, 2014

Resolves issue #1016

@spuder spuder changed the title Changes init script exit code to conform to lab standards Changes init script exit code to conform to lsb standards Oct 10, 2014
@@ -148,7 +148,7 @@ case $1 in
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we return 3 on the line above this one, if the call to pidofproc failes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jvshahid Isn't the one above (line 146) only exectued if the pid file exists, but the proceess doesn't? If so then exit code 1 would be the correct I think.

lsb status codes

exit code condition
0 program is running or service is OK
1 program is dead and /var/run pid file exists
2 program is dead and /var/lock lock file exists
3 program is not running
4 program or service status is unknown
5-99 reserved for future LSB use
100-149 reserved for distribution use
150-199 reserved for application use
200-254 reserved

@jvshahid
Copy link
Contributor

Cool, lgtm

jvshahid added a commit that referenced this pull request Oct 10, 2014
Changes init script exit code to conform to lsb standards
@jvshahid jvshahid merged commit ca6d99e into influxdata:master Oct 10, 2014
@jvshahid jvshahid added this to the 0.8.4 milestone Oct 10, 2014
@jvshahid jvshahid self-assigned this Oct 10, 2014
@spuder spuder deleted the issue1016 branch January 23, 2015 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants