tanuki

Wrapping Spring Boot application with Tanuki Service Wrapper

怎甘沉沦 提交于 2020-02-02 03:43:40
问题 How to wrap Spring Boot application as a linux daemon and to set it to read from application.properties. To start the jar with the parameters from the application.properties I am using this command: java -Dspring.config.location=/application.properties -jar MyJar.jar Where to set this in wrapper.conf? I have tried like this but the jar is not starting with the parameters from the application.properties. wrapper.java.command=java wrapper.java.command.loglevel=INFO wrapper.java.mainclass=org

Wrapping Spring Boot application with Tanuki Service Wrapper

[亡魂溺海] 提交于 2019-12-05 10:19:20
How to wrap Spring Boot application as a linux daemon and to set it to read from application.properties. To start the jar with the parameters from the application.properties I am using this command: java -Dspring.config.location=/application.properties -jar MyJar.jar Where to set this in wrapper.conf? I have tried like this but the jar is not starting with the parameters from the application.properties. wrapper.java.command=java wrapper.java.command.loglevel=INFO wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp wrapper.java.classpath.1=../lib/wrapper.jar wrapper.java.classpath.2