Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
labmanager-systemd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto LIVIO BECCARIA
labmanager-systemd
Commits
a180927f
Commit
a180927f
authored
6 months ago
by
bta
Browse files
Options
Downloads
Patches
Plain Diff
esame-rabbitmq-client: restart the service on failures.
parent
ed73a589
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
systemd/esame-rabbitmq-client.service
+8
-0
8 additions, 0 deletions
systemd/esame-rabbitmq-client.service
with
8 additions
and
0 deletions
systemd/esame-rabbitmq-client.service
+
8
−
0
View file @
a180927f
...
...
@@ -2,12 +2,20 @@
Description
=
Esame - RabbitMQ client
After
=
network-online.target
Wants
=
network-online.target
# Give up if restarted more than 10 times in 1 hour
# TODO: systemd in CentOS 7 is too old for these params:
StartLimitBurst
=
10
StartLimitIntervalSec
=
3600
[Service]
Type
=
exec
RemainAfterExit
=
yes
EnvironmentFile
=
-/local/esame-machine.conf
ExecStart
=
/usr/bin/python3 /usr/libexec/labmanager/rabbitmq-client.py
# Possible values: on-failure, on-abnormal, on-abort, on-watchdog
Restart
=
on-failure
# Wait 30s before trying to restart the service
RestartSec
=
30s
[Install]
WantedBy
=
esame.target esamekiosk.target esameshow.target graphical.target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment