Skip to content

Commit

Permalink
Set the process title to 'statsd'
Browse files Browse the repository at this point in the history
Makes it easier to see which node processes are statsd when
looking at a process list.
  • Loading branch information
Alex Whitman committed May 20, 2013
1 parent eb8d81d commit 182d558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ A test framework has been added using node-unit and some custom code to start
and manipulate statsd. Please add tests under test/ for any new features or bug
fixes encountered. Testing a live server can be tricky, attempts were made to
eliminate race conditions but it may be possible to encounter a stuck state. If
doing dev work, a `killall node` will kill any stray test servers in the
doing dev work, a `killall statsd` will kill any stray test servers in the
background (don't do this on a production machine!).

Tests can be executed with `./run_tests.sh`.
Expand Down
2 changes: 2 additions & 0 deletions stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ config.configFile(process.argv[2], function (config, oldConfig) {
}
});

process.title = 'statsd';

process.on('SIGTERM', function() {
if (conf.debug) {
util.log('Starting Final Flush');
Expand Down

0 comments on commit 182d558

Please sign in to comment.