question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

systemd restart "rule"

See original GitHub issue

is currently Restart=on-abort

this caused it to not restart for some for now undetermined reason last night. I would propose

Restart=always
StartLimitInterval=60s
StartLimitBurst=5

to ensure its restarted unless stopped by systemd, but also avoid spamming logs if something goes wonky?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
dschuesaecommented, Aug 19, 2020

It’s working definitely better. No issues for a long time now.

2reactions
ngardinercommented, Jul 4, 2020

Thanks @beikeland. I’ve updated with the Restart=always configuration you’ve proposed, however I’m not using systemd myself so it will get limited testing from me. I propose we leave this issue open for a while and get some feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

systemd.service - Freedesktop.org
By setting Restart= to on-failure , on-watchdog , on-abnormal or always , the service will be automatically restarted. The time configured here will...
Read more >
How to automatically restart Linux services with Systemd
They are both useful for configuring when Systemd should stop trying to restart a service. The former specifies a time interval in seconds, ......
Read more >
Is it possible to restart a systemd service via a rule
Preparation of sudo and systemctl restart is explained there. MDAR (Stuart Hanlon, UK importer of Velbus hardware) ...
Read more >
Polkit rule to allow a user restart systemd service
rules file with following rule to allow members of "agroup" to administer (stop/start/restart) docker.service (Centos 7): // Allow agroup ...
Read more >
Understanding and administering systemd - Fedora Docs
Systemd services can be modified using the systemctl edit command. # systemctl edit httpd.service · Add your custom configuration. For example: [Service] Restart...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found