From f06d639b7644a89fe0c2fff16b0afe2066f172c7 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Thu, 20 Nov 2014 09:21:56 -0200 Subject: Removing flask dependency and the user-agent-daemon --- service/setup.py | 1 - service/user-agent-daemon | 33 --------------------------------- 2 files changed, 34 deletions(-) delete mode 100755 service/user-agent-daemon (limited to 'service') diff --git a/service/setup.py b/service/setup.py index 31a5b55e..58c1ce58 100644 --- a/service/setup.py +++ b/service/setup.py @@ -79,7 +79,6 @@ setup(name='pixelated-user-agent', 'service-identity==14.0.0', 'klein==0.2.3', 'requests==2.4.3', - 'flask==0.10.1', 'srp==1.0.5', 'dirspec==13.10', 'u1db==13.09', diff --git a/service/user-agent-daemon b/service/user-agent-daemon deleted file mode 100755 index 99841a31..00000000 --- a/service/user-agent-daemon +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -export PYTHONPATH=`pwd`/pixelated:$PYTHONPATH - -USER_AGENT_PORT=3333 - -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 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 - -- cgit v1.2.3