Browse Source

Merge branch '3.2.x' into 3.3.x

Closes gh-42805
pull/43204/head
Moritz Halbritter 1 year ago
parent
commit
cd98aba680
  1. 9
      spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/deployment/installing.adoc

9
spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/deployment/installing.adoc

@ -24,17 +24,16 @@ After=syslog.target network.target
User=myapp User=myapp
Group=myapp Group=myapp
Environment="JAVA_HOME=/path/to/java/home" Type=exec
ExecStart=/path/to/java/home/bin/java -jar /var/myapp/myapp.jar
ExecStart=${JAVA_HOME}/bin/java -jar /var/myapp/myapp.jar WorkingDirectory=/var/myapp
ExecStop=/bin/kill -15 $MAINPID
SuccessExitStatus=143 SuccessExitStatus=143
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
---- ----
IMPORTANT: Remember to change the `Description`, `User`, `Group`, `Environment` and `ExecStart` fields for your application. IMPORTANT: Remember to change the `Description`, `User`, `Group`, `ExecStart` and `WorkingDirectory` fields for your application.
NOTE: The `ExecStart` field does not declare the script action command, which means that the `run` command is used by default. NOTE: The `ExecStart` field does not declare the script action command, which means that the `run` command is used by default.

Loading…
Cancel
Save