summaryrefslogtreecommitdiffstats
path: root/usr/lib/systemd/system/stas-config@.service
diff options
context:
space:
mode:
Diffstat (limited to 'usr/lib/systemd/system/stas-config@.service')
-rw-r--r--usr/lib/systemd/system/stas-config@.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/stas-config@.service b/usr/lib/systemd/system/stas-config@.service
new file mode 100644
index 0000000..f070a3c
--- /dev/null
+++ b/usr/lib/systemd/system/stas-config@.service
@@ -0,0 +1,17 @@
+# Copyright (c) 2022, Dell Inc. or its subsidiaries. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+# See the LICENSE file for details.
+#
+# This file is part of NVMe STorage Appliance Services (nvme-stas).
+#
+[Unit]
+Description=nvme-stas /etc/nvme/%i auto-generation
+Documentation=man:stas-config@.service(8)
+ConditionFileNotEmpty=|!/etc/nvme/%i
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/stasadm %i -f /etc/nvme/%i
+
+[Install]
+WantedBy=stas-config.target