6bbb92
From 822b53e6c9ebb0fe7236ebd3b4c73b009100592d Mon Sep 17 00:00:00 2001
6bbb92
From: Chris Leech <cleech@redhat.com>
6bbb92
Date: Tue, 22 Jan 2013 14:27:12 -0800
6bbb92
Subject: iscsiuio systemd unit files
6bbb92
6bbb92
---
6bbb92
 etc/systemd/iscsiuio.service | 17 +++++++++++++++++
6bbb92
 etc/systemd/iscsiuio.socket  |  9 +++++++++
6bbb92
 2 files changed, 26 insertions(+)
6bbb92
 create mode 100644 etc/systemd/iscsiuio.service
6bbb92
 create mode 100644 etc/systemd/iscsiuio.socket
6bbb92
6bbb92
diff --git a/etc/systemd/iscsiuio.service b/etc/systemd/iscsiuio.service
6bbb92
new file mode 100644
6bbb92
index 0000000..f0410b7
6bbb92
--- /dev/null
6bbb92
+++ b/etc/systemd/iscsiuio.service
6bbb92
@@ -0,0 +1,17 @@
6bbb92
+[Unit]
6bbb92
+Description=iSCSI UserSpace I/O driver
6bbb92
+Documentation=man:iscsiuio(8)
6bbb92
+DefaultDependencies=no
6bbb92
+Conflicts=shutdown.target
6bbb92
+Requires=iscsid.service
6bbb92
+BindTo=iscsid.service
6bbb92
+After=network.target
6bbb92
+Before=remote-fs-pre.target iscsid.service
6bbb92
+
6bbb92
+[Service]
6bbb92
+Type=forking
6bbb92
+PIDFile=/var/run/iscsiuio.pid
6bbb92
+ExecStart=/usr/sbin/iscsiuio
6bbb92
+
6bbb92
+[Install]
6bbb92
+WantedBy=multi-user.target
6bbb92
diff --git a/etc/systemd/iscsiuio.socket b/etc/systemd/iscsiuio.socket
6bbb92
new file mode 100644
6bbb92
index 0000000..d42cedc
6bbb92
--- /dev/null
6bbb92
+++ b/etc/systemd/iscsiuio.socket
6bbb92
@@ -0,0 +1,9 @@
6bbb92
+[Unit]
6bbb92
+Description=Open-iSCSI iscsiuio Socket
6bbb92
+Documentation=man:iscsiuio(8)
6bbb92
+
6bbb92
+[Socket]
6bbb92
+ListenStream=@ISCSID_UIP_ABSTRACT_NAMESPACE
6bbb92
+
6bbb92
+[Install]
6bbb92
+WantedBy=sockets.target
6bbb92
-- 
6bbb92
1.7.11.7
6bbb92