summaryrefslogtreecommitdiffstats
path: root/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in
blob: d83d9a1ad018761f018282c8b4c6fe6330057ea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Connect NVMe-oF subsystems automatically during boot
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