commit | a75a89cbadd74ab1ada03854e202c0a5295829d8 | [log] [tgz] |
---|---|---|
author | Ales Komarek <mail@newt.cz> | Sun Jan 19 17:50:15 2014 +0100 |
committer | Ales Komarek <mail@newt.cz> | Sun Jan 19 17:50:15 2014 +0100 |
tree | 7690b54758e1325e4633e9e14ee79231f97af7e4 |
Initial commit
diff --git a/conf/start b/conf/start new file mode 100644 index 0000000..7cba342 --- /dev/null +++ b/conf/start
@@ -0,0 +1,11 @@ +#!/bin/sh + +PATH=$PATH:/usr/local/bin:/usr/bin:/bin +NODE_BIN=$(which nodejs||which node) + +if [ ! -x "$NODE_BIN" ]; then +echo "Can't find executable nodejs or node in PATH=$PATH" + exit 1 +fi + +$NODE_BIN /srv/statsd/stats.js /etc/statsd/localConfig.js 2>&1 >> /var/log/statsd/statsd.log