mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
17 lines
347 B
Bash
Executable File
17 lines
347 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
|