liberty-hu/dist/liberty-hu.service

15 lines
320 B
SYSTEMD
Raw Permalink Normal View History

2023-08-29 11:49:40 +02:00
#See https://computingforgeeks.com/how-to-run-java-jar-application-with-systemd-on-linux/
[Unit]
Description=Liberty Hu service
[Service]
WorkingDirectory=/opt/prod
ExecStart=/bin/java -Xms256m -Xmx512m -jar liberty-hu.jar
User=jvmapps
Type=simple
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target