mirror of https://github.com/openspug/spug
U 更新start脚本
parent
6573dafa15
commit
4307f252ea
|
@ -8,4 +8,11 @@ cd $(dirname $(dirname $0))
|
||||||
if [ -f ./venv/bin/activate ]; then
|
if [ -f ./venv/bin/activate ]; then
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
fi
|
fi
|
||||||
exec python manage.py runmonitor
|
|
||||||
|
if command -v python3 &> /dev/null; then
|
||||||
|
PYTHON=python3
|
||||||
|
else
|
||||||
|
PYTHON=python
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec $PYTHON manage.py runmonitor
|
||||||
|
|
|
@ -8,4 +8,11 @@ cd $(dirname $(dirname $0))
|
||||||
if [ -f ./venv/bin/activate ]; then
|
if [ -f ./venv/bin/activate ]; then
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
fi
|
fi
|
||||||
exec python manage.py runscheduler
|
|
||||||
|
if command -v python3 &> /dev/null; then
|
||||||
|
PYTHON=python3
|
||||||
|
else
|
||||||
|
PYTHON=python
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec $PYTHON manage.py runscheduler
|
||||||
|
|
|
@ -8,4 +8,11 @@ cd $(dirname $(dirname $0))
|
||||||
if [ -f ./venv/bin/activate ]; then
|
if [ -f ./venv/bin/activate ]; then
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
fi
|
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
|
||||||
|
|
Loading…
Reference in New Issue