Permalink
Browse files

Grep for 'statsd' since grep for 'nodejs' doesn't match any running p…

…rocesses
  • Loading branch information...
1 parent c11ad9d commit a198e417b8f6163874d10b3ff9aaf59714bc4e42 @mconigliaro mconigliaro committed Mar 14, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 templates/default/statsd.erb
@@ -53,8 +53,7 @@ start() {
stop() {
echo -n $"Stopping $NAME daemon: "
- pid=$(ps aux | grep stats.js | grep nodejs | awk '{print $2}')
- kill $pid
+ kill $(ps aux | grep stats.js | grep statsd | awk '{print $2}')
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
rm -f /var/lock/subsys/$NAME

0 comments on commit a198e41

Please sign in to comment.