virtual-appliance/teamplayer/stop-teamplayer

11 lines
246 B
Plaintext
Raw Normal View History

#!/bin/sh
# this should be run as the TP_USER user
cd ~/web
PYTHONPATH="/etc/teamplayer:$PYTHONPATH"
export PYTHONPATH
[ -f "$HOME/tps.pid" ] && kill $(cat "TP_DB/tps.pid")
python manage.py stop_stream >> "/var/log/teamplayer/teamplayer.log"