multipath/multipathd.service: add more Conditions

Do not start multipathd on rd.multipath=0 rd_NO_MULTIPATH and if there
is no multipath.conf.
This commit is contained in:
Harald Hoyer 2014-11-25 13:23:21 +01:00
parent 78a78e4239
commit 2b2033e561

View File

@ -3,6 +3,10 @@ Description=Device-Mapper Multipath Device Controller
Before=iscsi.service iscsid.service lvm2-activation-early.service
DefaultDependencies=no
Conflicts=shutdown.target
ConditionKernelCommandLine=!nompath
ConditionKernelCommandLine=!rd.multipath=0
ConditionKernelCommandLine=!rd_NO_MULTIPATH
ConditionPathExists=/etc/multipath.conf
[Service]
Type=simple