[Pkg-iscsi-maintainers] [open-iscsi] 10/18: Don't allow iscsid to get killed during shutodown

Ritesh Raj Sarraf rrs at alioth.debian.org
Tue Nov 5 16:22:12 UTC 2013


This is an automated email from the git hooks/post-receive script.

rrs pushed a commit to branch master
in repository open-iscsi.

commit 5a163f3db64550ff911da8e10c0a917ad1b9cf11
Author: Ritesh Raj Sarraf <rrs at debian.org>
Date:   Tue Nov 5 21:31:32 2013 +0530

    Don't allow iscsid to get killed during shutodown
    
    This really is needed when we have iSCSI on ROOT
    
    Thanks: Wakko Warner
    Closes: #700762
---
 debian/open-iscsi.init |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/open-iscsi.init b/debian/open-iscsi.init
index 221fc91..182b1ee 100644
--- a/debian/open-iscsi.init
+++ b/debian/open-iscsi.init
@@ -15,6 +15,7 @@ ADM=/usr/bin/iscsiadm
 PIDFILE=/var/run/iscsid.pid
 NAMEFILE=/etc/iscsi/initiatorname.iscsi
 CONFIGFILE=/etc/iscsi/iscsid.conf
+OMITDIR=/run/sendsigs.omit.d
 
 [ -x "$DAEMON" ] || exit 0
 
@@ -99,6 +100,7 @@ start() {
 	modprobe -q ib_iser 2>/dev/null || :
 	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
 	RETVAL=$?
+	ln -s $PIDFILE $OMITDIR
 	log_end_msg $RETVAL
 
 	starttargets

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-iscsi/open-iscsi.git



More information about the Pkg-iscsi-maintainers mailing list