2015-11-15 23:22:16 +00:00
|
|
|
#!/bin/sh
|
2015-11-15 23:32:35 +00:00
|
|
|
[ -z "$BASE$APP" ] && exit 1
|
2015-11-15 23:22:16 +00:00
|
|
|
#p5env setup
|
|
|
|
PATH="$BASE/perl5/bin${PATH+:}${PATH}"; export PATH;
|
|
|
|
PERL5LIB="$BASE/perl5/lib/perl5${PERL5LIB+:}${PERL5LIB}"; export PERL5LIB;
|
|
|
|
PERL_LOCAL_LIB_ROOT="$BASE/perl5${PERL_LOCAL_LIB_ROOT+:}${PERL_LOCAL_LIB_ROOT}"; export PERL_LOCAL_LIB_ROOT;
|
|
|
|
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
|
2015-11-16 00:15:28 +00:00
|
|
|
while true;do pkill -0 -F $BASE/${APP}.pid 2>/dev/null || break; sleep 1; done
|
2015-11-16 00:25:28 +00:00
|
|
|
cd $BASE/$APP
|
2015-11-16 00:11:18 +00:00
|
|
|
plackup -s Starman -D -S $BASE/$APP/.sock -a $BASE/$APP/app.psgi --pid $BASE/${APP}.pid $START_OPTS
|