summaryrefslogtreecommitdiffstats
path: root/nvmf-autoconnect/systemd/nvmefc-boot-connections.service
blob: 33ab8c1f610fb8b7ddb220650a3664cc0d1e20da (plain)
1
2
3
4
5
6
7
8
9
10
[Unit]
Description=Auto-connect to subsystems on FC-NVME devices found during boot
ConditionPathExists=/sys/class/fc/fc_udev_device/nvme_discovery

[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo add > /sys/class/fc/fc_udev_device/nvme_discovery"

[Install]
WantedBy=default.target