forked from statsd/statsd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed references to rdio configs (updated rdioConfig.js to localCon…
…fig.js) improved $NODE_BIN searching
- Loading branch information
Stephen Koenig
committed
Apr 27, 2012
1 parent
980b582
commit d59d01d
Showing
7 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#!/bin/sh | ||
|
||
if [ -x /usr/bin/nodejs ]; then | ||
NODE_BIN=/usr/bin/nodejs | ||
elif [ -x /usr/bin/node ]; then | ||
NODE_BIN=/usr/bin/node | ||
else | ||
echo "Can't find /usr/bin/nodejs or /usr/bin/node" | ||
exit 1 | ||
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 /usr/share/statsd/stats.js /etc/statsd/rdioConfig.js 2>&1 >> /var/log/statsd/statsd.log | ||
$NODE_BIN /usr/share/statsd/stats.js /etc/statsd/localConfig.js 2>&1 >> /var/log/statsd/statsd.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
stats.js /usr/share/statsd | ||
config.js /usr/share/statsd | ||
debian/rdioConfig.js /etc/statsd | ||
debian/localConfig.js /etc/statsd | ||
debian/scripts/start /usr/share/statsd/scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
description "statsd" | ||
author "rdio" | ||
author "etsy" | ||
|
||
start on startup | ||
stop on shutdown | ||
|