What is the recommended way to customize systemd unit file to wait until all iSCSI block devices are available?
Issue
- We have a service that needs to run on startup and requires that all iSCSI block devices are available.
- However, although systemd executed our script after it started the iSCSI service, sometimes our script would fail because the iSCSI block devices were not yet available.
Environment
- Red Hat Enterprise Linux (RHEL) 7
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.