virtual-appliance/teamplayer/stop-teamplayer

8 lines
171 B
Bash
Executable File

#!/bin/sh
# this should be run as the TP_USER user
cd ~/web
[ -f "$HOME/tps.pid" ] && kill $(cat "$HOME/tps.pid")
python manage.py stop_stream > "$HOME/teamplayer.log"