Skip to content

Commit

Permalink
Mount tmpdir with exec mode
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Mar 22, 2018
1 parent a2f775c commit 0cdf80c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jobs/logstash/templates/ctl
Expand Up @@ -4,7 +4,6 @@ RUN_DIR=/var/vcap/sys/run/logstash
LOG_DIR=/var/vcap/sys/log/logstash
STORE_DIR=/var/vcap/store/logstash
JOB_DIR=/var/vcap/jobs/logstash

PIDFILE=$RUN_DIR/logstash.pid
RUNAS=vcap

Expand All @@ -21,7 +20,7 @@ case $1 in
start)
mkdir -p $RUN_DIR $LOG_DIR $STORE_DIR
chown -R $RUNAS:$RUNAS $RUN_DIR $LOG_DIR $STORE_DIR

mount /tmp -o remount,exec # ¯\_(ツ)_/¯
echo $$ > $PIDFILE

exec chpst -u $RUNAS:$RUNAS \
Expand Down

0 comments on commit 0cdf80c

Please sign in to comment.