2016-12-01 11:38:15 +02:00
|
|
|
[Unit]
|
|
|
|
|
Description=${pkg.name}
|
|
|
|
|
After=syslog.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
2020-03-10 16:52:50 +02:00
|
|
|
User=${pkg.user}
|
2016-12-01 11:38:15 +02:00
|
|
|
ExecStart=${pkg.installFolder}/bin/${pkg.name}.jar
|
|
|
|
|
SuccessExitStatus=143
|
|
|
|
|
|
2024-07-20 09:29:05 +07:00
|
|
|
# Service shall be restarted in 30 seconds when the service process exits, is killed, or a timeout is reached.
|
2025-01-14 16:31:21 +02:00
|
|
|
# Restart parameter default value 'no'
|
|
|
|
|
Restart=always
|
2024-07-20 09:29:05 +07:00
|
|
|
RestartSec=30
|
|
|
|
|
|
2016-12-01 11:38:15 +02:00
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|