Cannot get confirmation file properties in spring when running via init.d

I am launching the spring packaged boot can now as the init.d service according to the steps in the guide https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html . Everything works fine, but the only problem is that it cannot pick up the props from the conf file. In my setup, the jar file name is FooApp.jar, and the conf file was also named FooApp.conf in the same directory path. Also the contents of the conf file as shown below

JAVA_OPTS=-Xmx1024M -Xms512m -Xdebug -Xrunjdwp:transport=dt_socket,address=9001,server=y,suspend=n -Denv=test
RUN_ARGS=--aws.vpc.name=fooVpc--aws.stack.name=foo --info.app.version=<VERSION> --spring.profiles.active=default,test,aws

Could you help me if the conf file format is correct, and why, when the spring application loads as a linux service, it does not pick up the configuration from the conf conf apps file.

thank

+4
source share

All Articles