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.
I found a one-liner fix for /etc/init. d/open- iscsi.
-------- d/open- iscsi.org 2010-02-05 20:47:23.000000000 +0000 d/open- iscsi 2010-04-22 02:36:57.264590495 +0000
log_end_ msg $RETVAL
# during system shutdown rw/sendsigs. omit.d rw/sendsigs. omit.d/ || true
--- /etc/init.
+++ /etc/init.
@@ -69,6 +69,7 @@
# Don't kill the iscsi daemon when killing all processes
+ mkdir -p /lib/init/
ln -sf $PIDFILE /lib/init/
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.