diff -u statsd-0.7.1/debian/changelog statsd-0.7.1/debian/changelog --- statsd-0.7.1/debian/changelog +++ statsd-0.7.1/debian/changelog @@ -1,3 +1,9 @@ +statsd (0.7.1-1ppa3) lucid; urgency=low + + * Lucid compatible upstart script. + + -- W. Andrew Loe III (loe) Thu, 10 Jul 2014 11:14:25 -0700 + statsd (0.7.1-1ppa2) lucid; urgency=low * Lower debhelper version requirement. only in patch2: unchanged: --- statsd-0.7.1.orig/debian/statsd.upstart +++ statsd-0.7.1/debian/statsd.upstart @@ -7,17 +7,14 @@ description "Network daemon for aggregating statistics" author "Etsy" -start on (local-filesystems and net-device-up IFACE!=lo) - -setuid _statsd -setgid _statsd +start on startup +stop on shutdown respawn -respawn limit 10 5 script NODE_BIN=$(which nodejs||which node) chdir /usr/share/statsd - exec $NODE_BIN stats.js /etc/statsd/localConfig.js + exec sudo -u _statsd $NODE_BIN stats.js /etc/statsd/localConfig.js end script