1
0
Fork 0
nvme-cli/nvmf-autoconnect/systemd/nvmf-connect-nbft.service.in
Daniel Baumann 1e65f355a3
Adding upstream version 2.9.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-16 12:26:41 +01:00

26 lines
778 B
SYSTEMD

# This unit is meant to be started by network management software
# after a network interface defined in the NBFT gets set up
[Unit]
Description=Connect NBFT-defined NVMe-oF subsystems automatically
ConditionPathExists=|/sys/firmware/acpi/tables/NBFT
ConditionPathExists=|/sys/firmware/acpi/tables/NBFT1
Wants=modprobe@nvme_fabrics.service
After=modprobe@nvme_fabrics.service
After=network-online.target
Before=remote-fs-pre.target
[Service]
ProtectSystem=full
ProtectHome=true
ProtectHostname=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectProc=invisible
RestrictRealtime=true
LockPersonality=yes
MemoryDenyWriteExecute=yes
RemoveIPC=yes
RestrictAddressFamilies=AF_INET AF_INET6
Type=oneshot
ExecStart=@SBINDIR@/nvme connect-all --nbft