parent
92961cfa61
commit
8e325e6cde
@ -0,0 +1,22 @@ |
||||
#!/bin/bash |
||||
function cleanup() |
||||
{ |
||||
local pids=`jobs -p` |
||||
if [[ "${pids}" != "" ]]; then |
||||
kill ${pids} >/dev/null 2>/dev/null |
||||
fi |
||||
} |
||||
|
||||
action="${1-start}" |
||||
service="${2-all}" |
||||
|
||||
trap cleanup EXIT |
||||
|
||||
rm -f logs/tmp/*.pid |
||||
|
||||
if [[ "$action" == "bash" || "$action" == "sh" ]];then |
||||
bash |
||||
else |
||||
python manage.py "${action}" "${service}" -u nginx -usm 1 |
||||
fi |
||||
|
Loading…
Reference in new issue