Signed-off-by: Christian Hesse <[email protected]> --- etc/systemd/iscsi-login.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 etc/systemd/iscsi-login.service
diff --git a/etc/systemd/iscsi-login.service b/etc/systemd/iscsi-login.service new file mode 100644 index 0000000..72d80dc --- /dev/null +++ b/etc/systemd/iscsi-login.service @@ -0,0 +1,12 @@ +[Unit] +Description=Open-iSCSI login to automatic targets +Documentation=man:iscsid(8) man:iscsiadm(8) +After=iscsid.service iscsid.socket + +[Service] +Type=oneshot +ExecStart=/usr/bin/iscsiadm -m node --loginall=automatic +ExecStop=/usr/bin/iscsiadm -m node --logoutall=automatic + +[Install] +WantedBy=multi-user.target -- 2.5.1 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.
