forked from hectcastro/chef-statsd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd08d3f
commit 18f54d7
Showing
3 changed files
with
11 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
description "statsd" | ||
description "StatsD" | ||
author "Chef" | ||
|
||
start on startup | ||
stop on shutdown | ||
start on runlevel [2345] | ||
stop on runlevel [!2345] | ||
|
||
script | ||
export HOME="/root" | ||
respawn | ||
expect daemon | ||
|
||
exec sudo -u statsd /usr/share/statsd/scripts/start | ||
end script | ||
exec start-stop-daemon --start --oknodo --chdir /usr/share/statsd --user statsd --chuid statsd --name statsd --startas /usr/local/bin/node --background -- /usr/share/statsd/stats.js /etc/statsd/config.js 2>&1 >> <%= @log_file %> | ||
|
||
emits statsd-running |