Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2464)

Unified Diff: files/hm9000_api_server_ctl

Issue 108840044: Fill out the HM9000 implementation
Patch Set: Fill out the HM9000 implementation Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « files/hm9000_analyzer_ctl ('k') | files/hm9000_evacuator_ctl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: files/hm9000_api_server_ctl
=== removed file 'files/hm9000_api_server_ctl'
--- files/hm9000_api_server_ctl 2014-05-14 16:40:09 +0000
+++ files/hm9000_api_server_ctl 1970-01-01 00:00:00 +0000
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-RUN_DIR=/var/vcap/sys/run/hm9000
-LOG_DIR=/var/vcap/sys/log/hm9000
-PIDFILE=$RUN_DIR/hm9000_api_server.pid
-
-source /var/vcap/packages/common/utils.sh
-
-case $1 in
-
- start)
- pid_guard $PIDFILE "hm9000_api_server"
-
- mkdir -p $RUN_DIR
- mkdir -p $LOG_DIR
-
- chown -R vcap:vcap $RUN_DIR
- chown -R vcap:vcap $LOG_DIR
-
- echo $$ > $PIDFILE
-
- exec chpst -u vcap:vcap /var/vcap/packages/hm9000/hm9000 \
- serve_api \
- --config=/var/vcap/jobs/hm9000/config/hm9000.json \
- 1>>$LOG_DIR/hm9000_api_server.stdout.log \
- 2>>$LOG_DIR/hm9000_api_server.stderr.log
-
- ;;
-
- stop)
- kill_and_wait $PIDFILE
-
- ;;
-
- *)
- echo "Usage: hm9000_api_server_ctl {start|stop}"
-
- ;;
-
-esac
« no previous file with comments | « files/hm9000_analyzer_ctl ('k') | files/hm9000_evacuator_ctl » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b