Browse Source
Merge pull request #11244 from AdrienAdB/patch-1
Update template.service
pull/12177/head
Andrew Shvayka
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
packaging/java/scripts/control/template.service
|
|
|
@ -7,5 +7,9 @@ User=${pkg.user} |
|
|
|
ExecStart=${pkg.installFolder}/bin/${pkg.name}.jar |
|
|
|
SuccessExitStatus=143 |
|
|
|
|
|
|
|
# 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 |
|
|
|
|