summaryrefslogtreecommitdiffstats
path: root/nvmf-autoconnect/systemd/nvmf-connect@.service.in
blob: 5ba70863e6bfe6d5a63cfb673485f3a2773cedeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# Unit file used by 70-nvmf-autoconnect.rules.
#

[Unit]
Description=NVMf auto-connect scan upon nvme discovery controller Events
DefaultDependencies=no
After=systemd-udevd.service
Before=local-fs-pre.target
PartOf=nvmf-connect.target
Requires=nvmf-connect.target

[Service]
Type=simple
Environment="CONNECT_ARGS=%i"
ExecStart=/bin/sh -c "@SBINDIR@/nvme connect-all --context=autoconnect --quiet `/bin/echo -e '${CONNECT_ARGS}'`"