mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
18 lines
401 B
Bash
Executable File
18 lines
401 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ROOT=`pwd`
|
|
PIDFILE=$ROOT/logs/auth.pid
|
|
|
|
mkdir logs 2> /dev/null
|
|
|
|
if [ -f $PIDFILE ]; then
|
|
kill `cat -- $PIDFILE` 2> /dev/null
|
|
rm -f -- $PIDFILE
|
|
fi
|
|
|
|
sleep 1
|
|
cd $ROOT
|
|
source ./env/bin/activate
|
|
./manage.py runfcgi daemonize=true pidfile=$PIDFILE host=127.0.0.1 port=9981 errlog=$ROOT/logs/stderr.log outlog=$ROOT/logs/stdout.log
|
|
./manage.py celeryd -B > $ROOT/logs/celeryd.lg 2>&1 &
|