Yuvipanda has uploaded a new change for review. https://gerrit.wikimedia.org/r/200322
Change subject: tools: Add simple 'status' command to webservice ...................................................................... tools: Add simple 'status' command to webservice Bug: T93560 Change-Id: I675af92b4133a297c494b7eb9612089b0b9e6683 --- M modules/toollabs/files/webservice2 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/22/200322/1 diff --git a/modules/toollabs/files/webservice2 b/modules/toollabs/files/webservice2 index 4102543..4f3ae0a 100644 --- a/modules/toollabs/files/webservice2 +++ b/modules/toollabs/files/webservice2 @@ -143,7 +143,7 @@ parser.add_argument('server', help='Type of server to start', choices=['lighttpd', 'tomcat', 'uwsgi-python', 'nodejs'], default='lighttpd', nargs='?') parser.add_argument('action', help='Action to perform', - choices=['stop', 'start', 'restart']) + choices=['stop', 'start', 'restart', 'status']) parser.add_argument('--release', help='Which Ubuntu release the node running the webservice sould be on', choices=['precise', 'trusty'], default='trusty') args = parser.parse_args() @@ -182,3 +182,8 @@ print 'Webservice not running, starting' start_web_job(args.server, args.release) wait_for_job(queue_name, job_name, True) +elif args.action == 'status': + if job_id is None: + print 'Your webservice is not running' + else: + print 'Your webservice is running' -- To view, visit https://gerrit.wikimedia.org/r/200322 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I675af92b4133a297c494b7eb9612089b0b9e6683 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits