Commit 718ea5f7 authored by Vedran Pavic's avatar Vedran Pavic Committed by Andy Wilkinson

Update systemd service documentation

- update script with valid exit status to ensure service stops cleanly
- clarify unused customization variables

Closes gh-4334
parent 826acf5d
......@@ -459,6 +459,7 @@ can add the following script in `/etc/systemd/system/myapp.service`:
[Service]
User=myapp
ExecStart=/var/myapp/myapp.jar
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
......@@ -517,6 +518,12 @@ the default behavior in a script or on the command line:
in the script.
|===
NOTE: The `PID_FOLDER`, `LOG_FOLDER` and `LOG_FILENAME` variables are only valid for an
`init.d` service. With `systemd` the equivalent customizations are made using '`service`'
script. Check the
http://www.freedesktop.org/software/systemd/man/systemd.service.html[service unit
configuration man page] for more details.
In addition, the following properties can be changed when the script is written by using
the `embeddedLaunchScriptProperties` option of the Spring Boot Maven or Gradle plugins.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment