Skip to content

Commit

Permalink
multipathd.service: restart multipathd on failure
Browse files Browse the repository at this point in the history
systemd will now restart multipathd on failure unless it has already been
started 3 times in the last 30 seconds.

Signed-off-by: Benjamin Marzinski <[email protected]>
Reviewed-by: Martin Wilck <[email protected]>
  • Loading branch information
bmarzins authored and mwilck committed Nov 12, 2024
1 parent 633c6ef commit 0e91f38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions multipathd/multipathd.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ Conflicts=initrd-cleanup.service
ConditionKernelCommandLine=!nompath
ConditionKernelCommandLine=!multipath=off
ConditionVirtualization=!container
StartLimitIntervalSec=30
StartLimitBurst=3

[Service]
Type=notify
NotifyAccess=main
ExecStart=@BINDIR@/multipathd -d -s
ExecReload=@BINDIR@/multipathd reconfigure
Restart=on-failure
TasksMax=infinity
LimitRTPRIO=10
CPUWeight=1000
Expand Down

0 comments on commit 0e91f38

Please sign in to comment.