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
|
|
|
|
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 ~
|
|
|
|
|
|
|
|
#[ -f "TP_DB/tps.pid" ] && kill $(cat "TP_DB/tps.pid")
|
2010-08-22 15:22:10 +02:00
|
|
|
[ -f "TP_DB/fcgi.pid" ] && kill $(cat "TP_DB/fcgi.pid")
|
2013-07-22 15:33:36 +02:00
|
|
|
|
2011-04-10 05:45:35 +02:00
|
|
|
$PYTHON manage.py stop_stream >> "/var/log/teamplayer/teamplayer.log"
|