Comment 1 for bug 567143

Revision history for this message
Zhang Linshan (zhang-linshan) wrote :

I found a one-liner fix for /etc/init.d/open-iscsi.

--------
--- /etc/init.d/open-iscsi.org 2010-02-05 20:47:23.000000000 +0000
+++ /etc/init.d/open-iscsi 2010-04-22 02:36:57.264590495 +0000
@@ -69,6 +69,7 @@
                log_end_msg $RETVAL
                # Don't kill the iscsi daemon when killing all processes
                        # during system shutdown
+ mkdir -p /lib/init/rw/sendsigs.omit.d
                ln -sf $PIDFILE /lib/init/rw/sendsigs.omit.d/ || true
        fi
 }
--------

The open-iscsi script tries to register its PID to the 'omit' directory at start-up, but the directory does not exist. So the sendsigs script kills iscsid at shutdown without giving grace, and something goes wrong...
I'm not sure whether I should put mkdir in open-iscsi or in some common script.