Skip to content

Commit

Permalink
fix(90multipath): use RemainAfterExit=yes for multipathd-configure.se…
Browse files Browse the repository at this point in the history
…rvice

Services of type `oneshot` should almost always use
`RemainAfterExit=yes`. This is a one-time action that we don't want to
rerun if the unit gets pulled in multiple times in the systemd
transaction.
  • Loading branch information
jlebon authored and johannbg committed Aug 12, 2022
1 parent 0940be9 commit 2334031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules.d/90multipath/multipathd-configure.service
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ConditionPathExists=!/etc/multipath.conf

[Service]
Type=oneshot
RemainAfterExit=yes
# mpathconf requires /etc/multipath to already exist
ExecStartPre=-/usr/bin/mkdir -p /etc/multipath
ExecStart=/usr/sbin/mpathconf --enable
Expand Down

0 comments on commit 2334031

Please sign in to comment.