From abd1595d358b1cfe6c059aeea74f6ecdc748f461 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Mon, 29 Oct 2007 21:24:05 -0500 Subject: add SIGTERM iscsid handler and iscsiadm command to stop iscsid You can now do killall iscsid or iscsiadm -k 0 to stop iscsid. This should not normally be done, because iscsid is required for normal initiator behavior. It is mostly for testing, iscsi boot or system shutdown. TODO: - more testing. I am pretty sure the original code is broken. For exmaple sending a SIGTERM to the log process then the daemon process will cause semop errors. --- etc/initd/initd.redhat | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/initd/initd.redhat b/etc/initd/initd.redhat index c269eeb..7cf198e 100644 --- a/etc/initd/initd.redhat +++ b/etc/initd/initd.redhat @@ -39,9 +39,8 @@ stop() echo -n $"Stopping iSCSI initiator service: " sync iscsiadm -m node --logoutall=all - pkill -KILL iscsid + killproc iscsid rm -f /var/run/iscsid.pid - #killproc iscsid [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/open-iscsi modprobe -r iscsi_tcp 2>/dev/null modprobe -r ib_iser 2>/dev/null -- cgit v1.2.1