]>
Commit | Line | Data |
---|---|---|
6ae08450 JR |
1 | From ab79bdb20e37216ca969e06d63a952acfd023963 Mon Sep 17 00:00:00 2001 |
2 | From: Chris Leech <cleech@redhat.com> | |
3 | Date: Tue, 28 May 2013 13:12:27 -0700 | |
4 | Subject: [PATCH] Don't check for autostart sessions if iscsi is not used (bug | |
5 | #951951) | |
6 | ||
7 | Change conditional startup in iscsi.service to check for a non-empty | |
8 | nodes directory, instead of initiator-name. This fits better with what | |
9 | it's doing, as there's no need to scan for autostart node records if | |
10 | there are no node records at all. | |
11 | --- | |
12 | etc/systemd/iscsi.service | 2 +- | |
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
14 | ||
15 | diff --git a/etc/systemd/iscsi.service b/etc/systemd/iscsi.service | |
16 | index bbd52fd..7b4efee 100644 | |
17 | --- a/etc/systemd/iscsi.service | |
18 | +++ b/etc/systemd/iscsi.service | |
19 | @@ -5,7 +5,7 @@ DefaultDependencies=no | |
20 | Conflicts=shutdown.target | |
21 | After=systemd-remount-fs.service network.target iscsid.service iscsiuio.service | |
22 | Before=remote-fs-pre.target | |
23 | -ConditionPathExists=/etc/iscsi/initiatorname.iscsi | |
24 | +ConditionDirectoryNotEmpty=/var/lib/iscsi/nodes | |
25 | ||
26 | [Service] | |
27 | Type=oneshot | |
28 | -- | |
29 | 1.8.1.4 | |
30 |