summaryrefslogtreecommitdiffstats
path: root/nvmf-autoconnect/systemd/nvmf-autoconnect.service.in
blob: 92960cde6144fcc98d23ee8a491a86abc179480d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Connect NVMe-oF subsystems automatically during boot
ConditionPathExists=|@SYSCONFDIR@/nvme/config.json
ConditionPathExists=|@SYSCONFDIR@/nvme/discovery.conf
Wants=modprobe@nvme_fabrics.service
After=modprobe@nvme_fabrics.service
After=network-online.target
Before=remote-fs-pre.target

[Service]
Type=oneshot
ExecStart=@SBINDIR@/nvme connect-all --context=autoconnect

[Install]
WantedBy=default.target