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

Side by Side Diff: files/hm9000_metrics_server_ctl

Issue 108840044: Fill out the HM9000 implementation
Patch Set: Fill out the HM9000 implementation Created 9 years, 9 months ago
Left:
Right:
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 unified diff | Download patch
« no previous file with comments | « files/hm9000_listener_ctl ('k') | files/hm9000_sender_ctl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
3 RUN_DIR=/var/vcap/sys/run/hm9000
4 LOG_DIR=/var/vcap/sys/log/hm9000
5 PIDFILE=$RUN_DIR/hm9000_metrics_server.pid
6
7 source /var/vcap/packages/common/utils.sh
8
9 case $1 in
10
11 start)
12 pid_guard $PIDFILE "hm9000_metrics_server"
13
14 mkdir -p $RUN_DIR
15 mkdir -p $LOG_DIR
16
17 chown -R vcap:vcap $RUN_DIR
18 chown -R vcap:vcap $LOG_DIR
19
20 echo $$ > $PIDFILE
21
22 exec chpst -u vcap:vcap /var/vcap/packages/hm9000/hm9000 \
23 serve_metrics \
24 --config=/var/vcap/jobs/hm9000/config/hm9000.json \
25 1>>$LOG_DIR/hm9000_metrics_server.stdout.log \
26 2>>$LOG_DIR/hm9000_metrics_server.stderr.log
27
28 ;;
29
30 stop)
31 kill_and_wait $PIDFILE
32
33 ;;
34
35 *)
36 echo "Usage: hm9000_metrics_server_ctl {start|stop}"
37
38 ;;
39
40 esac
OLDNEW
« no previous file with comments | « files/hm9000_listener_ctl ('k') | files/hm9000_sender_ctl » ('j') | no next file with comments »

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