From 66a08806f57e9c3098d8700f5457cacdb3b41bf8 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sun, 11 Jan 2015 09:42:24 +0100 Subject: [PATCH] working --- rc.ledgerrb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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() {