]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: remove the restart limit on the modprobe@.service
authorAlban Bedel <alban.bedel@aerq.com>
Wed, 15 Jun 2022 11:12:46 +0000 (13:12 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 Jun 2022 16:15:34 +0000 (18:15 +0200)
They are various cases where the same module might be repeatedly
loaded in a short time frame, for example if a service depending on a
module keep restarting, or if many instances of such service get
started at the same time. If this happend the modprobe@.service
instance will be marked as failed because it hit the restart limit.

Overall it doesn't seems to make much sense to have a restart limit on
the modprobe service so just disable it.

Fixes: #23742
units/modprobe@.service

index cf8baf608463a1f1a2249b4a6f6fd4bea2148fec..85a2c08dee63bfac439f1e3ff286a8c5bd504ed7 100644 (file)
@@ -13,6 +13,7 @@ DefaultDependencies=no
 Before=sysinit.target
 Documentation=man:modprobe(8)
 ConditionCapability=CAP_SYS_MODULE
+StartLimitIntervalSec=0
 
 [Service]
 Type=oneshot