MatterMiners / cobald

Cobald is an Opportunistic Balancing Deamon
https://cobald.readthedocs.io
MIT License
10 stars 12 forks source link

Update systemd unit example with restart settings #122

Open maxfischer2781 opened 1 year ago

maxfischer2781 commented 1 year ago

In practice the COBalD unit must handle spurious failures gracefully. The unit file example should be updated with recommended settings for restarting.

For example, in production we now use the following:

[Unit]
StartLimitBurst=6
StartLimitIntervalSec=1h

[Service]
Restart=on-failure
RestartSec=300s