[Pkg-iscsi-maintainers] [open-iscsi] 09/33: iscsid: add example unit files for systemd

Ritesh Raj Sarraf rrs at alioth.debian.org
Tue Nov 5 16:21:11 UTC 2013


This is an automated email from the git hooks/post-receive script.

rrs pushed a commit to branch upstream-mnc
in repository open-iscsi.

commit c34e0bdcbafdb6f9304e1474d51fe1c789c5dea2
Author: Tomasz Torcz <tomek at pipebreaker.pl>
Date:   Wed Nov 28 13:37:08 2012 +0100

    iscsid: add example unit files for systemd
    
    Those two units, based on the work by Jóhann B. Guðmundsson, exploit
    on-demand socket activation in iscsid.
---
 etc/systemd/iscsid.service |   13 +++++++++++++
 etc/systemd/iscsid.socket  |    9 +++++++++
 2 files changed, 22 insertions(+)

diff --git a/etc/systemd/iscsid.service b/etc/systemd/iscsid.service
new file mode 100644
index 0000000..028e0b3
--- /dev/null
+++ b/etc/systemd/iscsid.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Open-iSCSI
+Documentation=man:iscsid(8) man:iscsiuio(8) man:iscsiadm(8)
+After=network.target NetworkManager-wait-online.service iscsiuio.service tgtd.service targetcli.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/iscsid.pid
+ExecStart=/usr/sbin/iscsid
+ExecStop=/sbin/iscsiadm -k 0 2
+
+[Install]
+WantedBy=multi-user.target
diff --git a/etc/systemd/iscsid.socket b/etc/systemd/iscsid.socket
new file mode 100644
index 0000000..832451d
--- /dev/null
+++ b/etc/systemd/iscsid.socket
@@ -0,0 +1,9 @@
+[Unit]
+Description=Open-iSCSI iscsid Socket
+Documentation=man:iscsid(8) man:iscsiuio(8) man:iscsiadm(8)
+
+[Socket]
+ListenStream=@ISCSIADM_ABSTRACT_NAMESPACE
+
+[Install]
+WantedBy=sockets.target

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-iscsi/open-iscsi.git



More information about the Pkg-iscsi-maintainers mailing list