-
Notifications
You must be signed in to change notification settings - Fork 814
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
Jkoppe supervisor and redhatinit fixes #85
Jkoppe supervisor and redhatinit fixes #85
Conversation
jkoppe
commented
Jun 22, 2012
- Add options to make supervisorctl work
- Adjust redhat init script so its a bit more friendly to puppet's service type AND during interactive use by an admin
…per http://supervisord.org/configuration.html since we want to use supervisorctl
…sor, 2) check_status with supervisorctl provides more useful messages and return codes, 3) grab_status uses check_status for return codes, 4) stop/start functions use grab_status before the supervisor test (before we only did grab_status checks inside the non-supervisorctl case)
@@ -13,20 +19,24 @@ pidfile = /var/run/datadog-supervisord.pid | |||
logfile_backups = 10 | |||
|
|||
[program:collector] | |||
command=env LANG=POSIX /usr/bin/python /usr/share/datadog/agent/agent.py foreground --use-local-forwarder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to keep that LANG=POSIX set in the environment, otherwise it'll break in some non-US locales (e.g. Norway).
It's not needed for the forwarder though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, i meant to put that in the supervisor child subprocess environment field per http://supervisord.org/subprocess.html#subprocess-environment.
…ixes Jkoppe supervisor and redhatinit fixes
* [FEATURE] Allow configuration of StatsD host. See [#85][] * [IMPROVEMENT] Re-throw IOException caught at the instance-level to handle them properly. See [#83][] [#83]: DataDog/jmxfetch#83 [#85]: DataDog/jmxfetch#85
**Changes** * [FEATURE] Allow configuration of StatsD host. See [#85][] * [IMPROVEMENT] Re-throw IOException caught at the instance-level to handle them properly. See [#83][] [#83]: DataDog/jmxfetch#83 [#85]: DataDog/jmxfetch#85
**Changes** * [FEATURE] Allow configuration of StatsD host. See [#85][] * [IMPROVEMENT] Re-throw IOException caught at the instance-level to handle them properly. See [#83][] [#83]: DataDog/jmxfetch#83 [#85]: DataDog/jmxfetch#85