mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2024-11-15 19:48:01 +01:00
clean after stop
This commit is contained in:
parent
7fdd463391
commit
9e40a108c9
1 changed files with 3 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue