my for loop sucks

This commit is contained in:
Matthew Connelly 2015-11-16 00:15:28 +00:00
parent c30af1e75f
commit 52d0459b2d
1 changed files with 1 additions and 1 deletions

2
start
View File

@ -8,5 +8,5 @@ PERL_MB_OPT="--install_base \"$BASE/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=$BASE/perl5"; export PERL_MM_OPT;
pkill -F $BASE/${APP}.pid 2>/dev/null
for((;;));do pkill -0 -F $BASE/${APP}.pid 2>/dev/null || break; sleep 1; done
while true;do pkill -0 -F $BASE/${APP}.pid 2>/dev/null || break; sleep 1; done
plackup -s Starman -D -S $BASE/$APP/.sock -a $BASE/$APP/app.psgi --pid $BASE/${APP}.pid $START_OPTS