U 更新start脚本

pull/137/head
vapao 2020-06-25 19:08:17 +08:00
parent 6573dafa15
commit 4307f252ea
3 changed files with 24 additions and 3 deletions

View File

@ -8,4 +8,11 @@ cd $(dirname $(dirname $0))
if [ -f ./venv/bin/activate ]; then
source ./venv/bin/activate
fi
exec python manage.py runmonitor
if command -v python3 &> /dev/null; then
PYTHON=python3
else
PYTHON=python
fi
exec $PYTHON manage.py runmonitor

View File

@ -8,4 +8,11 @@ cd $(dirname $(dirname $0))
if [ -f ./venv/bin/activate ]; then
source ./venv/bin/activate
fi
exec python manage.py runscheduler
if command -v python3 &> /dev/null; then
PYTHON=python3
else
PYTHON=python
fi
exec $PYTHON manage.py runscheduler

View File

@ -8,4 +8,11 @@ cd $(dirname $(dirname $0))
if [ -f ./venv/bin/activate ]; then
source ./venv/bin/activate
fi
exec python manage.py runworker ssh_exec
if command -v python3 &> /dev/null; then
PYTHON=python3
else
PYTHON=python
fi
exec $PYTHON manage.py runworker ssh_exec