summaryrefslogtreecommitdiff
path: root/fake-service/fake-user-agent-daemon
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2014-11-20 09:58:03 -0200
committerBruno Wagner <bwgpro@gmail.com>2014-11-20 14:44:45 -0200
commit6f5bb5312cf1bc52270155570ce4c73d2d884468 (patch)
tree66318876469974415de755c3fe23c3057d9c6cde /fake-service/fake-user-agent-daemon
parentf06d639b7644a89fe0c2fff16b0afe2066f172c7 (diff)
Removed fake service and it is not being used nor mantained anymore
Diffstat (limited to 'fake-service/fake-user-agent-daemon')
-rwxr-xr-xfake-service/fake-user-agent-daemon33
1 files changed, 0 insertions, 33 deletions
diff --git a/fake-service/fake-user-agent-daemon b/fake-service/fake-user-agent-daemon
deleted file mode 100755
index 621f463e..00000000
--- a/fake-service/fake-user-agent-daemon
+++ /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
-