summaryrefslogtreecommitdiff
path: root/py-fake-service/fake-user-agent-deamon
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-08-21 12:11:53 -0300
committerDuda Dornelles <ddornell@thoughtworks.com>2014-08-21 12:12:03 -0300
commit9296ed69e613d5aaa46d0371e4ba2e56aa79fadb (patch)
tree8707ff869b88ea2c6e528380c1bbf0d861da30cf /py-fake-service/fake-user-agent-deamon
parentef998f0b0a1cb2bb6d2ea2bf3c90c124333a48ba (diff)
oops, typo: deamon -> daemon
Diffstat (limited to 'py-fake-service/fake-user-agent-deamon')
-rwxr-xr-xpy-fake-service/fake-user-agent-deamon33
1 files changed, 0 insertions, 33 deletions
diff --git a/py-fake-service/fake-user-agent-deamon b/py-fake-service/fake-user-agent-deamon
deleted file mode 100755
index 621f463e..00000000
--- a/py-fake-service/fake-user-agent-deamon
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-export PYTHONPATH=`pwd`/app:$PYTHONPATH
-
-USER_AGENT_PORT=4567
-
-function do_stop() {
- test -e gunicorn.pid && (kill -9 $(cat gunicorn.pid) && rm gunicorn.pid && echo "Stopped User Agent") || echo "User Agent is not running"
-}
-
-function do_start() {
- echo "gunicorn pixelated_user_agent:app -b 0.0.0.0:$USER_AGENT_PORT -D -p gunicorn.pid --log-file=gunicorn.log"
- gunicorn pixelated_user_agent:app -b 0.0.0.0:$USER_AGENT_PORT -D -p gunicorn.pid --log-file=gunicorn.log
-}
-
-case $1 in
- restart)
- do_stop && do_start
- ;;
- start)
- do_start
- ;;
- stop)
- do_stop
- ;;
- killall)
- pgrep -f gunicorn | xargs kill -9
- rm -rf gunicorn.pid
- ;;
- *)
- echo "usage: start|stop|restart|killall"
- ;;
-esac
-