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