Skip to content

Commit

Permalink
Fixed status running under wrong user
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Apr 23, 2014
1 parent 085060e commit 26d45e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ USER="nathanr"
case "$1" in
start)
su $USER -c "source ~/.nvm/nvm.sh && $DAEMON_PATH/node_modules/forever/bin/forever start $DAEMON_PATH/server.js"
$0 status
;;
status)
source ~/.nvm/nvm.sh
$DAEMON_PATH/node_modules/forever/bin/forever list
su $USER -c "source ~/.nvm/nvm.sh && $DAEMON_PATH/node_modules/forever/bin/forever list"
;;
stop)
su $USER -c "source ~/.nvm/nvm.sh && $DAEMON_PATH/node_modules/forever/bin/forever stop $DAEMON_PATH/server.js"
Expand Down

0 comments on commit 26d45e7

Please sign in to comment.