Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added store directory

Change-Id: I16479d0b5720ff6e1e8a1f8350cd7da21a5ed738
  • Loading branch information...
commit f6e7410549e079091ac793e92f9ad18a86a8a980 1 parent 6aaffc2
@pmenglund pmenglund authored
Showing with 10 additions and 8 deletions.
  1. +10 −8 jobs/batarang/templates/batarang_ctl
View
18 jobs/batarang/templates/batarang_ctl
@@ -1,26 +1,28 @@
#!/bin/bash
JOB=batarang
+BASE=/var/vcap
-export PATH=/var/vcap/packages/ruby/bin:$PATH
-export BUNDLE_GEMFILE=/var/vcap/packages/$JOB/Gemfile
+export PATH=$BASE/packages/ruby/bin:$PATH
+export BUNDLE_GEMFILE=$BASE/packages/$JOB/Gemfile
-RUN_DIR=/var/vcap/sys/run/$JOB
-LOG_DIR=/var/vcap/sys/log/$JOB
-BIN_DIR=/var/vcap/packages/$JOB/bin
+RUN_DIR=$BASE/sys/run/$JOB
+LOG_DIR=$BASE/sys/log/$JOB
+BIN_DIR=$BASE/packages/$JOB/bin
+STORE_DIR=$BASE/store/$JOB
PIDFILE=$RUN_DIR/$JOB.pid
+
RUNAS=vcap
case $1 in
start)
- mkdir -p $RUN_DIR $LOG_DIR
- chown -R $RUNAS:$RUNAS $RUN_DIR $LOG_DIR
+ mkdir -p $RUN_DIR $LOG_DIR $STORE_DIR
+ chown -R $RUNAS:$RUNAS $RUN_DIR $LOG_DIR $STORE_DIR
echo $$ > $PIDFILE
export NATS_URI='<%= properties.mbus %>'
- export BUNDLE_GEMFILE=/var/vcap/packages/$JOB/Gemfile
exec chpst -u $RUNAS:$RUNAS \
bundle exec $BIN_DIR/batarang <%= spec.index %> \
Please sign in to comment.
Something went wrong with that request. Please try again.