summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/rtslib-fb/files/target.service')
-rw-r--r--dev-python/rtslib-fb/files/target.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/rtslib-fb/files/target.service b/dev-python/rtslib-fb/files/target.service
new file mode 100644
index 000000000000..400284edd174
--- /dev/null
+++ b/dev-python/rtslib-fb/files/target.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Restore LIO kernel target configuration
+Requires=sys-kernel-config.mount
+After=sys-kernel-config.mount network.target local-fs.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/targetctl restore
+ExecStop=/usr/bin/targetctl clear
+SyslogIdentifier=target
+
+[Install]
+WantedBy=multi-user.target