Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Updated Upstart configuration for 1.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
hectcastro committed Aug 9, 2012
1 parent 994bb1f commit 983f234
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions templates/default/statsd.conf.erb
@@ -1,12 +1,17 @@
description "StatsD"
author "Chef"

start on runlevel [2345]
start on (filesystem and net-device-up)
stop on runlevel [!2345]

respawn
expect daemon
respawn limit 5 30

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 %>
chdir /usr/share/statsd
setuid statsd

script
exec /usr/local/bin/node /usr/share/statsd/stats.js /etc/statsd/config.js 2>&1 >> <%= @log_file %>
end script

emits statsd-running

0 comments on commit 983f234

Please sign in to comment.