The goal here should be simple.
 If there are iscsi sessions, then iscsid should be started/running.

You can tell if there are iscsi sessions by either:
 - 'iscsiadm --mode=session' exits 0
 - /sys/class/iscsi_session is non-empty.

The current open-iscsi.service implementation will not result in a
iscsid.service running if it did not create sessions (either because
they already existed or because there was nothing to do).

I'm trying to work out the best way to implement that logic in the
systemd services that we have now.

Would it be acceptable for the open-iscsi.service file to simply execute
 'systemctl start iscsid.service'
if there was content in /sys/class/iscsi_session ?

My testing shows that 'systemctl start SERVICE' for a service that
is already running exits 0 and is not harmful.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1802354

Title:
  iscsid does not run if there are only initramfs initiated targets

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1802354/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to