Package: open-iscsi
Version: 2.0.872-2
Severity: normal
Tags: patch

I have a test system that boots over iSCSI.  If iscsid is killed and the
kernel decides to sync the scsi caches, the iSCSI connection fails.

I change the init script to drop a link to the PID file for iscsid to the
/run/sendsigs.omit.d and it shuts down properly now.

I've attached the patch, it's only adds 2 lines.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 3.3.0
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages open-iscsi depends on:
ii  libc6                         2.13-20    Embedded GNU C Library: Shared lib
ii  udev                          172-1      /dev/ and hotplug management daemo

open-iscsi recommends no packages.

-- no debconf information
--- a/open-iscsi	2011-09-14 05:18:39.000000000 -0400
+++ b/open-iscsi	2013-02-16 21:39:20.000000000 -0500
@@ -14,6 +15,7 @@
 PIDFILE=/var/run/iscsid.pid
 NAMEFILE=/etc/iscsi/initiatorname.iscsi
 CONFIGFILE=/etc/iscsi/iscsid.conf
+OMITDIR=/run/sendsigs.omit.d
 
 [ -x "$DAEMON" ] || exit 0
 
@@ -97,6 +99,7 @@
 	modprobe -q iscsi_tcp 2>/dev/null || :
 	modprobe -q ib_iser 2>/dev/null || :
 	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
+	ln -s $PIDFILE $OMITDIR
 	RETVAL=$?
 	log_end_msg $RETVAL
 

Reply via email to