virtual-appliance/teamplayer/stop-teamplayer
Albert Hopkins 71c7629cb3 * Make non-public services only listen on localhost
* /opt/teamplayer/* is owned by root and thus not writeable

* Put config files in /etc/teamplayer

* Switch DBMS from Sqlite to PostgreSQL
2010-08-15 18:04:54 -04:00

11 lines
246 B
Bash
Executable File

#!/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"