Yuvipanda has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/181418

Change subject: Add support for uwsgi webservices
......................................................................

Add support for uwsgi webservices

Change-Id: Id1431d09d20ca55a4f7936b598365ac14f8eacb5
---
M misctools/webservice2
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/toollabs 
refs/changes/18/181418/1

diff --git a/misctools/webservice2 b/misctools/webservice2
index 12d6a01..5f1de08 100644
--- a/misctools/webservice2
+++ b/misctools/webservice2
@@ -125,7 +125,7 @@
 
 parser = argparse.ArgumentParser()
 parser.add_argument('server', help='Type of server to start',
-                    choices=['lighttpd', 'tomcat'], default='lighttpd', 
nargs='?')
+                    choices=['lighttpd', 'tomcat', 'uwsgi'], 
default='lighttpd', nargs='?')
 parser.add_argument('action', help='Action to perform',
                     choices=['stop', 'start', 'restart'])
 parser.add_argument('--release', help='Which Ubuntu release the node running 
the webservice sould be on',
@@ -137,6 +137,10 @@
 
 job_id = get_job_id(queue_name, job_name)
 
+# And no precise for uwsgi, so default to trusty
+if args.server == 'uwsgi':
+    args.release = trusty
+
 if args.action == 'start':
     if job_id is not None:
         print 'Your webservice is already running'

-- 
To view, visit https://gerrit.wikimedia.org/r/181418
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id1431d09d20ca55a4f7936b598365ac14f8eacb5
Gerrit-PatchSet: 1
Gerrit-Project: labs/toollabs
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to