Browse Source

Update documentation to clarify systemd service user

Closes gh-4293
pull/4293/merge
Vedran Pavic 10 years ago committed by Andy Wilkinson
parent
commit
59d2ae598b
  1. 5
      spring-boot-docs/src/main/asciidoc/deployment.adoc

5
spring-boot-docs/src/main/asciidoc/deployment.adoc

@ -385,8 +385,8 @@ Systemd is the successor to `init.d` scripts, and now being used by many many mo @@ -385,8 +385,8 @@ Systemd is the successor to `init.d` scripts, and now being used by many many mo
distributions. Although you can continue to use `init.d` script with `systemd`, it is also
possible to launch Spring Boot applications using `systemd` '`service`' scripts.
For example, to run a Spring Boot application installed in `var/myapp` you can add the
following script in `/etc/systemd/system/myapp.service`:
For example, to run a Spring Boot application installed in `var/myapp` as user `myapp` you
can add the following script in `/etc/systemd/system/myapp.service`:
[indent=0]
----
@ -395,6 +395,7 @@ following script in `/etc/systemd/system/myapp.service`: @@ -395,6 +395,7 @@ following script in `/etc/systemd/system/myapp.service`:
After=syslog.target
[Service]
User=myapp
ExecStart=/var/myapp/myapp.jar
[Install]

Loading…
Cancel
Save