Skip to content

Commit

Permalink
template.service - added additonal comments on restart section and se…
Browse files Browse the repository at this point in the history
…t restartset to 30
  • Loading branch information
volodymyr-babak committed May 1, 2024
1 parent 934955a commit 80f2b75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packaging/java/scripts/control/template.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 80f2b75

Please sign in to comment.