From d6e75a125091f051db574139e189838d1d26984d Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Thu, 11 Feb 2021 12:19:17 -0500 Subject: [PATCH] plinth: Disable start rate limiting for service Allow plinth service to restart an unlimited number of times, with 5 seconds delay. Test: - After introducing an error in plinth startup code, the service is restarted every 5 seconds without limit. Signed-off-by: James Valleroy Reviewed-by: Veiko Aasa --- data/lib/systemd/system/plinth.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/lib/systemd/system/plinth.service b/data/lib/systemd/system/plinth.service index 20960cf4d..d50717327 100644 --- a/data/lib/systemd/system/plinth.service +++ b/data/lib/systemd/system/plinth.service @@ -4,10 +4,12 @@ Description=FreedomBox Service (Plinth) Documentation=man:plinth(1) After=network.target +StartLimitIntervalSec=0 [Service] ExecStart=/usr/bin/plinth Restart=on-failure +RestartSec=5 ExecReload=/bin/kill -HUP $MAINPID User=plinth Group=plinth