Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
59d2ae59
Commit
59d2ae59
authored
Oct 23, 2015
by
Vedran Pavic
Committed by
Andy Wilkinson
Oct 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation to clarify systemd service user
Closes gh-4293
parent
aa3313cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
deployment.adoc
spring-boot-docs/src/main/asciidoc/deployment.adoc
+3
-2
No files found.
spring-boot-docs/src/main/asciidoc/deployment.adoc
View file @
59d2ae59
...
@@ -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
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.
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
For example, to run a Spring Boot application installed in `var/myapp`
as user `myapp` you
following script in `/etc/systemd/system/myapp.service`:
can add the
following script in `/etc/systemd/system/myapp.service`:
[indent=0]
[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
After=syslog.target
[Service]
[Service]
User=myapp
ExecStart=/var/myapp/myapp.jar
ExecStart=/var/myapp/myapp.jar
[Install]
[Install]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment