diff --git a/packaging/java/scripts/control/template.service b/packaging/java/scripts/control/template.service index 188853af4f..0e9f85031c 100644 --- a/packaging/java/scripts/control/template.service +++ b/packaging/java/scripts/control/template.service @@ -7,9 +7,9 @@ User=${pkg.user} ExecStart=${pkg.installFolder}/bin/${pkg.name}.jar SuccessExitStatus=143 -# Restart service after 60 seconds -Restart=always -RestartSec=60 +# Service shall be restarted in 30 seconds when the service process exits, is killed, or a timeout is reached. +Restart=always # default 'no' +RestartSec=30 [Install] WantedBy=multi-user.target