diff --git a/rc.ledgerrb b/rc.ledgerrb index dcdf7534..2e200783 100755 --- a/rc.ledgerrb +++ b/rc.ledgerrb @@ -2,17 +2,15 @@ CWD=$(pwd) -PIDFILE='$CWD/puma.pid' - SERVER='bundle exec puma' -SERVER_OPTIONS=' --daemon --pidfile $PIDFILE' +SERVER_OPTIONS=' --daemon --pidfile ./puma.pid' function start() { $SERVER $SERVER_OPTIONS } function stop() { - [ -e $PIDFILE ] && kill $(cat $PIDFILE) && rm $PIDFILE + [ -e $PIDFILE ] && kill $(cat ./puma.pid) } function restart() {