Skip to content

Commit

Permalink
EASY-2122 add scalatra production environment property to service run…
Browse files Browse the repository at this point in the history
… scripts
  • Loading branch information
Richard van Heest committed May 31, 2019
1 parent 13f23db commit 79c30fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/assembly/dist/install/easy-bag-store-initd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jsvc_exec()
LC_ALL=en_US.UTF-8 \
$EXEC -home $JAVA_HOME -cp $CLASSPATH -user $USER -outfile $OUTFILE -errfile $ERRFILE -pidfile $PID -wait $WAIT_TIME \
-Dapp.home=$APPHOME \
-Dorg.scalatra.environment="production" \
-Dlogback.configurationFile=$LOGBACK_CFG $1 $CLASS $ARGS
}

Expand Down
1 change: 1 addition & 0 deletions src/main/assembly/dist/install/easy-bag-store.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Description=EASY Bag Store Service
ExecStart=/bin/java \
-Dlogback.configurationFile=/etc/opt/dans.knaw.nl/easy-bag-store/logback-service.xml \
-Dapp.home=/opt/dans.knaw.nl/easy-bag-store \
-Dorg.scalatra.environment="production" \
-jar /opt/dans.knaw.nl/easy-bag-store/bin/easy-bag-store.jar run-service

# Java returns 143 even if the SIGTERM was handled correctly.
Expand Down

0 comments on commit 79c30fd

Please sign in to comment.