Hi Christian: I apologize: I should have posted it before, but I have a similar service file that we have been using successfully on SUSE now for a while. It's similar to yours but has a few differences. I will post it shortly as a patch, for consideration by the list.
On Thursday, September 10, 2015 at 8:20:17 AM UTC-7, Christian Hesse wrote: > > Signed-off-by: Christian Hesse <ma...@eworm.de <javascript:>> > --- > 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 open-iscsi+unsubscr...@googlegroups.com. To post to this group, send email to open-iscsi@googlegroups.com. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.