]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
fabrics: Trigger auto connect if config.json exists
authorDaniel Wagner <dwagner@suse.de>
Thu, 29 Sep 2022 14:00:26 +0000 (16:00 +0200)
committerDaniel Wagner <dwagner@suse.de>
Thu, 29 Sep 2022 14:01:35 +0000 (16:01 +0200)
When either discover.conf or config.json exists the rule should be
executed.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvmf-autoconnect/systemd/nvmf-autoconnect.service.in

index d83d9a1ad018761f018282c8b4c6fe6330057ea7..c57ff718cc47d0b5559257be5e2578ed6790ae45 100644 (file)
@@ -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