summaryrefslogtreecommitdiffstats
path: root/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'nvmf-autoconnect/systemd/nvmf-autoconnect.service.in')
-rw-r--r--nvmf-autoconnect/systemd/nvmf-autoconnect.service.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in b/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in
index d83d9a1..c57ff71 100644
--- a/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in
+++ b/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in
@@ -1,6 +1,7 @@
[Unit]
Description=Connect NVMe-oF subsystems automatically during boot
-ConditionPathExists=@SYSCONFDIR@/nvme/discovery.conf
+ConditionPathExists=|!@SYSCONFDIR@/nvme/config.json
+ConditionPathExists=|!@SYSCONFDIR@/nvme/discovery.conf
After=network-online.target
Before=remote-fs-pre.target