Comment 17 for bug 1821255

Confirmed fix in cosmic, according to test case:

ubuntu@cosmic:~$ ./

ubuntu@cosmic:~$ dpkg -l | grep open-iscsi
ii open-iscsi 2.0.874-5ubuntu9.4 amd64 iSCSI initiator tools

ubuntu@cosmic:~$ sudo pkill iscsid

ubuntu@cosmic:~$ sudo systemctl stop iscsid
Warning: Stopping iscsid.service, but it can still be activated by:


The systemctl stop command doesn't hang anymore, and the service can be restarted normally.