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"
|
2010-07-22 05:09:09 +02:00
|
|
|
|
2010-08-16 00:04:54 +02:00
|
|
|
export PYTHONPATH
|
|
|
|
|
|
|
|
[ -f "$HOME/tps.pid" ] && kill $(cat "TP_DB/tps.pid")
|
|
|
|
python manage.py stop_stream >> "/var/log/teamplayer/teamplayer.log"
|