Created
September 26, 2019 09:21
-
-
Save yingzhuo/7907e10181c2c449fa412bd698c5e421 to your computer and use it in GitHub Desktop.
run spring boot jar as system service #spring #systemctl
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=My Service | |
After=syslog.target | |
[Service] | |
ExecStart=/opt/java-8-home/bin/java -Xms256m -Xmx4G -Djava.security.egd=file:/dev/./urandom -Duser.timezone=Asia/Shanghai -jar /opt/playground/playground.jar --spring.profiles.active=dev --server.port=3323 | |
SuccessExitStatus=143 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment