clean after stop

This commit is contained in:
Gwenhael Le Moine 2015-01-11 09:36:44 +01:00
parent 7fdd463391
commit 9e40a108c9

View file

@ -1,15 +1,16 @@
#!/bin/sh
PIDFILE=./puma.pid
SERVER='bundle exec puma'
SERVER_OPTIONS=' --daemon --pidfile $PIDFILE'
PIDFILE=./puma.pid
function start() {
$SERVER $SERVER_OPTIONS
}
function stop() {
[ -e $PIDFILE ] && kill $(cat $PIDFILE)
[ -e $PIDFILE ] && kill $(cat $PIDFILE) && rm $PIDFILE
}
function restart() {