From c74c36e175061559ff1ee97e1091561b9cf599a2 Mon Sep 17 00:00:00 2001 From: Adam Piggott Date: Fri, 14 Feb 2020 19:01:13 +0000 Subject: [PATCH] Tweak systemd unit file The directive "StartLimitInterval" has been replaced by [StartLimitIntervalSec=interval, StartLimitBurst=burst](https://www.freedesktop.org/software/systemd/man/systemd.unit.html#StartLimitIntervalSec=interval). I'd suggest that the default backoff settings are fine (in Ubuntu 19.10 no more than 5 restarts per 10 seconds, else delayed by 10 seconds per attempt) so this directive can simply be removed. --- examples/systemd/rest-server.service | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/systemd/rest-server.service b/examples/systemd/rest-server.service index 63b7a1b..a8a00ae 100644 --- a/examples/systemd/rest-server.service +++ b/examples/systemd/rest-server.service @@ -10,7 +10,6 @@ Group=www-data ExecStart=/usr/local/bin/rest-server --path /tmp/restic Restart=always RestartSec=5 -StartLimitInterval=0 [Install] WantedBy=multi-user.target