Comment 3 for bug 1802354

Revision history for this message
Steve Langasek (vorlon) wrote :

Instead of manually invoking systemctl here which seems like an abstraction violation to me, I would suggest that open-iscsi.service should issue an iscsiadm command that talks to the socket and triggers the daemon to be started.

In effect, '/sbin/iscsiadm -m node --loginall=automatic' already does this but only for the case that /etc/iscsi/nodes is non-empty.

I would suggest 'iscsiadm -m session -s'.