From d8f0469929480af02b0235142d1805b78f0b9a21 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Mon, 6 Jan 2014 15:14:38 +0000 Subject: [PATCH] teamplayer/stop-teamplayer: Call stop-stream *before* killing the pids. --- teamplayer/stop-teamplayer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teamplayer/stop-teamplayer b/teamplayer/stop-teamplayer index c21b831..a9f685e 100755 --- a/teamplayer/stop-teamplayer +++ b/teamplayer/stop-teamplayer @@ -9,7 +9,7 @@ DJANGO_SETTINGS_MODULE="project.settings_local" ; export DJANGO_SETTINGS_MODULE cd ~ +$PYTHON manage.py stop_stream >> "/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") -$PYTHON manage.py stop_stream >> "/var/log/teamplayer/teamplayer.log"