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

exit status is always 0, even on error #1008

Closed
wants to merge 1 commit into from
Closed

exit status is always 0, even on error #1008

wants to merge 1 commit into from

Conversation

jvshahid
Copy link
Contributor

@jvshahid jvshahid commented Nov 4, 2014

The daemon should exit non-zero if there is an error (like when parsing the config file):

$ influxdb -pidfile /var/run/influxdb/influxdb.pid -config /etc/influxdb.conf
Couldn't parse configuration file: /etc/influxdb.conf
Near line 2, key '': Near line 19: Table names cannot contain '[' or ']'.
$ echo $?
0

@jvshahid jvshahid self-assigned this Oct 21, 2014
Currently we only return an exit code of 1 if an error occurred,
otherwise an exit code of 0 is returned.
@dgnorton
Copy link
Contributor

dgnorton commented Nov 5, 2014

@jvshahid lgtm

@jvshahid jvshahid closed this in de8836c Nov 5, 2014
@jvshahid jvshahid removed the review label Nov 5, 2014
@toddboom toddboom deleted the fix-1008 branch May 5, 2015 19:44
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

3 participants