Last active
April 28, 2020 13:07
-
-
Save robertohein/06fa373d6af5216fb90a854fc42c109b to your computer and use it in GitHub Desktop.
spring boot systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description= Service description | |
After=mysql.service | |
[Service] | |
User=root | |
WorkingDirectory=/app/caf-pdmg/target | |
ExecStart=/usr/bin/java -jar -Xmx4G -Xms2G -Dfile.encoding=UTF-8 app.jar SuccessExitStatus=143 | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment