mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-13 09:27:44 +08:00
13 lines
362 B
Bash
Executable File
13 lines
362 B
Bash
Executable File
#/bin/bash
|
|
|
|
filepath=$(cd "$(dirname "$0")"; pwd)
|
|
filepath=`dirname $filepath`
|
|
filepath=`dirname $filepath`
|
|
filepath="$filepath/www/index.php"
|
|
|
|
RUNNING_STATUS=$(ps aux | grep 'codefever_schedule' | grep -v 'grep' | grep -v 'sh' | wc -l)
|
|
if [ $RUNNING_STATUS -lt 1 ]
|
|
then
|
|
nohup /usr/local/php/bin/php $filepath backend/codefever_schedule run > /dev/null &
|
|
fi
|