Skip to content

Commit

Permalink
Move log output to /var/log/statsd logging in /tmp is not a good idea…
Browse files Browse the repository at this point in the history
…, it's dangerous and not persitent in many cases (/tmp mount in tmpfs or wiped at host startup).
  • Loading branch information
Bruno Clermont authored and kastner committed Feb 12, 2012
1 parent cc1ba1f commit 15d147b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/dirs
@@ -0,0 +1 @@
var/log/statsd
6 changes: 6 additions & 0 deletions debian/postinst
@@ -0,0 +1,6 @@
#!/bin/sh

if [ "`stat -c %G /var/log/statsd`" != 'nogroup' ]; then
chown root.nogroup /var/log/statsd
chmod 770 /var/log/statsd
fi
2 changes: 1 addition & 1 deletion debian/scripts/start
@@ -1,3 +1,3 @@
#!/bin/sh
# Called by Upstart, /etc/init/statsd.conf
/usr/bin/nodejs /usr/share/statsd/stats.js /etc/statsd/rdioConfig.js 2>&1 >> /tmp/statsd.log
/usr/bin/nodejs /usr/share/statsd/stats.js /etc/statsd/rdioConfig.js 2>&1 >> /var/log/statsd/statsd.log

0 comments on commit 15d147b

Please sign in to comment.