diff options
Diffstat (limited to '')
-rw-r--r-- | nvmf-autoconnect/systemd/nvmf-autoconnect.service.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in b/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in new file mode 100644 index 0000000..c57ff71 --- /dev/null +++ b/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in @@ -0,0 +1,14 @@ +[Unit] +Description=Connect NVMe-oF subsystems automatically during boot +ConditionPathExists=|!@SYSCONFDIR@/nvme/config.json +ConditionPathExists=|!@SYSCONFDIR@/nvme/discovery.conf +After=network-online.target +Before=remote-fs-pre.target + +[Service] +Type=oneshot +ExecStartPre=/sbin/modprobe nvme-fabrics +ExecStart=@SBINDIR@/nvme connect-all + +[Install] +WantedBy=default.target |