2010-07-22 05:09:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# this should be run as the TP_USER user
|
|
|
|
|
2013-07-22 15:33:36 +02:00
|
|
|
PYTHON=python
|
2014-01-06 04:14:53 +01:00
|
|
|
PYTHONPATH="$HOME" ; export PYTHONPATH
|
2013-07-22 15:33:36 +02:00
|
|
|
DJANGO_SETTINGS_MODULE="project.settings_local" ; export DJANGO_SETTINGS_MODULE
|
2010-07-22 05:09:09 +02:00
|
|
|
|
2013-07-22 15:33:36 +02:00
|
|
|
. ~/bin/activate
|
2010-08-16 00:04:54 +02:00
|
|
|
|
2013-07-22 15:33:36 +02:00
|
|
|
cd ~
|
|
|
|
|
2014-01-06 16:14:38 +01:00
|
|
|
$PYTHON manage.py stop_stream >> "/var/log/teamplayer/teamplayer.log"
|
2014-01-06 04:14:53 +01:00
|
|
|
[ -f "TP_DB/tps.pid" ] && kill $(cat "TP_DB/tps.pid")
|
|
|
|
[ -f "TP_DB/uwsgi.pid" ] && kill $(cat "TP_DB/uwsgi.pid")
|
2013-07-22 15:33:36 +02:00
|
|
|
|