Created
October 31, 2017 03:27
-
-
Save cgimenes/5eaecd5355244abde74c4940d85dece0 to your computer and use it in GitHub Desktop.
Deploy Java (/usr/lib/systemd/system/)
This file contains hidden or 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=Java Service | |
[Service] | |
User=nobody | |
# The configuration file application.properties should be here: | |
WorkingDirectory=/webapps | |
ExecStart=/usr/bin/java -Xmx256m -jar dmgco.jar | |
SuccessExitStatus=143 | |
TimeoutStopSec=10 | |
Restart=on-failure | |
RestartSec=5 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment