Skip to content

Commit

Permalink
units: remove the restart limit on the modprobe@.service
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AlbanBedel authored and keszybz committed Jun 21, 2022
1 parent 19df770 commit 9625350
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions units/modprobe@.service
Expand Up @@ -13,6 +13,7 @@ DefaultDependencies=no
Before=sysinit.target
Documentation=man:modprobe(8)
ConditionCapability=CAP_SYS_MODULE
StartLimitIntervalSec=0

[Service]
Type=oneshot
Expand Down

0 comments on commit 9625350

Please sign in to comment.