Browse files

Updated Upstart configuration for 1.4.

  • Loading branch information...
1 parent 994bb1f commit 983f2348f1e2c6cfe03c10b095dfa2f4ef350604 @hectcastro committed Aug 9, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 templates/default/statsd.conf.erb
View
11 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.