Fix useStartStopDaemon in launch script and allow config via conf file

Commit 5a1ee6eb added support for disabling use of start-stop-daemon
via a placeholder in the default launch script. Unfortunately, that
placeholder was subsequently broken in 81a47639.

This commit reinstates the placeholder and adds tests to verify that all
of the placeholders in the launch script can be replaced and that they
have the required default values. Furthermore, it also allows the use of
start-stop-daemon to be configured via USE_START_STOP_DAEMON in an
app’s .conf file. This allows the configuration to be changed after the
app has been built.

Closes gh-4985
This commit is contained in:
Andy Wilkinson
2016-01-21 14:39:39 +00:00
parent 44f508208a
commit 854cacdb4f
5 changed files with 95 additions and 17 deletions

View File

@@ -0,0 +1,7 @@
source ./test-functions.sh
chmod -x $(type -p start-stop-daemon)
echo 'USE_START_STOP_DAEMON=false' > /spring-boot-app.conf
install_service
start_service
await_app
curl -s http://127.0.0.1:8080/