2025-02-16 11:09:01 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Connect NVMe-oF subsystems automatically during boot
|
2025-02-16 12:24:13 +01:00
|
|
|
ConditionPathExists=|@SYSCONFDIR@/nvme/config.json
|
|
|
|
ConditionPathExists=|@SYSCONFDIR@/nvme/discovery.conf
|
2025-02-16 12:25:41 +01:00
|
|
|
Wants=modprobe@nvme_fabrics.service
|
|
|
|
After=modprobe@nvme_fabrics.service
|
2025-02-16 12:11:43 +01:00
|
|
|
After=network-online.target
|
2025-02-16 11:09:01 +01:00
|
|
|
Before=remote-fs-pre.target
|
|
|
|
|
|
|
|
[Service]
|
2025-02-16 12:26:52 +01:00
|
|
|
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
|
2025-02-16 11:09:01 +01:00
|
|
|
Type=oneshot
|
2025-02-16 12:24:13 +01:00
|
|
|
ExecStart=@SBINDIR@/nvme connect-all --context=autoconnect
|
2025-02-16 11:09:01 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|