virtual-appliance/appliances/teamplayer/stop-teamplayer
Albert Hopkins 06a71843b1 teamplayer: fix stop-teamplayer script
It was still calling "manage.py stop_steam" but "stop_stream" was renamed
to "shutdown"
2015-08-07 22:37:14 +00:00

16 lines
391 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 ~
$PYTHON manage.py shutdown >> "/var/log/teamplayer/teamplayer.log"
[ -f "TP_DB/tps.pid" ] && kill $(cat "TP_DB/tps.pid")
[ -f "TP_DB/uwsgi.pid" ] && kill $(cat "TP_DB/uwsgi.pid")