diff --git a/debian/statsd.upstart b/debian/statsd.upstart index 0b0db02..2c6a0fe 100644 --- a/debian/statsd.upstart +++ b/debian/statsd.upstart @@ -17,10 +17,9 @@ respawn limit 10 5 chdir /usr/share/statsd -script - NODE_BIN=$(which nodejs||which node) +pre-start script + NODE_BIN=$(which nodejs || which node) [ -n $NODE_BIN ] || { stop; exit 0; } - - exec $NODE_BIN stats.js /etc/statsd/localConfig.js end script +exec $NODE_BIN stats.js /etc/statsd/localConfig.js