Skip to content

Commit 2334031

Browse files
jlebonjohannbg
authored andcommitted
fix(90multipath): use RemainAfterExit=yes for multipathd-configure.service
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.
1 parent 0940be9 commit 2334031

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules.d/90multipath/multipathd-configure.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ConditionPathExists=!/etc/multipath.conf
1212

1313
[Service]
1414
Type=oneshot
15+
RemainAfterExit=yes
1516
# mpathconf requires /etc/multipath to already exist
1617
ExecStartPre=-/usr/bin/mkdir -p /etc/multipath
1718
ExecStart=/usr/sbin/mpathconf --enable

0 commit comments

Comments
 (0)