Update systemd service documentation

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

Closes gh-4334
This commit is contained in:
Vedran Pavic 2015-10-28 22:50:35 +01:00 committed by Andy Wilkinson
parent 826acf5d67
commit 718ea5f78b
1 changed files with 7 additions and 0 deletions

View File

@ -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.