Skip to content

Commit

Permalink
Fix systemd example configuration
Browse files Browse the repository at this point in the history
Closes gh-42795
  • Loading branch information
mhalbritter committed Oct 21, 2024
1 parent c9e16dc commit 2bbdc53
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@ The following script offers an example:
User=myapp
Group=myapp
Environment="JAVA_HOME=/path/to/java/home"
ExecStart=${JAVA_HOME}/bin/java -jar /var/myapp/myapp.jar
ExecStop=/bin/kill -15 $MAINPID
Type=exec
ExecStart=/path/to/java/home/bin/java -jar /var/myapp/myapp.jar
WorkingDirectory=/var/myapp
SuccessExitStatus=143
[Install]
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.

Expand Down

0 comments on commit 2bbdc53

Please sign in to comment.