diff options
Diffstat (limited to '')
-rw-r--r-- | nvmet.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nvmet.service b/nvmet.service new file mode 100644 index 0000000..6f97a91 --- /dev/null +++ b/nvmet.service @@ -0,0 +1,16 @@ +[Unit] +Description=Restore NVMe kernel target configuration +Requires=sys-kernel-config.mount +After=sys-kernel-config.mount network-online.target local-fs.target +Wants=network-online.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/sbin/nvmetcli restore +ExecStop=/usr/sbin/nvmetcli clear +SyslogIdentifier=nvmetcli + +[Install] +WantedBy=multi-user.target + |