From 854916c54c12f5181ad9c7522d1e16f1de369550 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 18 Feb 2026 13:15:11 -0800 Subject: [PATCH] syncthing: tests: Fix tests by allowing rapid restarts Tests: - Functional tests for syncthing pass. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- .../system/syncthing@syncthing.service.d/freedombox.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plinth/modules/syncthing/data/usr/lib/systemd/system/syncthing@syncthing.service.d/freedombox.conf b/plinth/modules/syncthing/data/usr/lib/systemd/system/syncthing@syncthing.service.d/freedombox.conf index 749d0d636..41b2e8f8f 100644 --- a/plinth/modules/syncthing/data/usr/lib/systemd/system/syncthing@syncthing.service.d/freedombox.conf +++ b/plinth/modules/syncthing/data/usr/lib/systemd/system/syncthing@syncthing.service.d/freedombox.conf @@ -1,3 +1,10 @@ # The service depends on users and groups defined in LDAP [Unit] After=nslcd.service + +# Revert to systemd defaults for the number of times the service can start in a +# given interval. Syncthing sets it to a much more strict value of 4 start in +# 60s which leads to functional tests failing when app is enabled/disabled, +# installed/uninstalled, and backed up/restored many times. +StartLimitIntervalSec=10s +StartLimitBurst=5