virtual-appliance/teamplayer/stop-teamplayer
Albert Hopkins 4d7fb4c5d8 teamplayer: Update to work with 2.1
* Switch to python3.

* Switch from lighttpd/flup to nginx/uwsgi.
2014-01-06 03:14:53 +00:00

16 lines
394 B
Bash
Executable File

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