2010-07-22 05:09:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# this should be run as the TP_USER user
|
|
|
|
|
|
|
|
cd ~/web
|
2010-08-16 00:04:54 +02:00
|
|
|
PYTHONPATH="/etc/teamplayer:$PYTHONPATH"
|
2011-04-10 05:45:35 +02:00
|
|
|
PYTHON=python2.7
|
2010-07-22 05:09:09 +02:00
|
|
|
|
2010-08-16 00:04:54 +02:00
|
|
|
export PYTHONPATH
|
|
|
|
|
2010-08-22 15:22:10 +02:00
|
|
|
[ -f "TP_DB/tps.pid" ] && kill $(cat "TP_DB/tps.pid")
|
|
|
|
[ -f "TP_DB/fcgi.pid" ] && kill $(cat "TP_DB/fcgi.pid")
|
2011-04-10 05:45:35 +02:00
|
|
|
$PYTHON manage.py stop_stream >> "/var/log/teamplayer/teamplayer.log"
|