Opened 3 years ago

Closed 3 years ago

#1590 closed defect (fixed)

Hangs in execd status - with FIX

Reported by: pete.forman@… Owned by: Dave Love <d.love@…>
Priority: normal Milestone:
Component: sge Version: 8.1.9
Severity: minor Keywords:
Cc:

Description

I have installed SGE 8.1.9 from RPM on SUSE 11 SP4.

PROBLEM:
Running this command hangs with no output.

sudo /sbin/service sgeexecd.p6444 status

DIAGNOSIS:
The cause of this is the sgeexecd script failing to set pidfile and then
calling cat which now expects STDIN and so waits indefinitely.

FIX:
This is the patch that I used on the script in /etc/init.d. It is a two
line change that you can apply to the appropriate source file.

--- sgeexecd.p6444.orig 2016-11-18 17:42:28.000000000 +0000
+++ sgeexecd.p6444 2016-11-22 15:16:04.000000000 +0000
@@ -448,9 +448,10 @@

fi


if [ "$status" = true ]; then

+ pidfile=$execd_run_dir/execd.pid

if [ -f $pidfile ]; then

pid=cat $pidfile

  • if $utilbin_dir/checkprog $pid $name > /dev/null; then

+ if $utilbin_dir/checkprog $pid sge_execd > /dev/null; then

echo "execd (pid $pid) is running..."
exit 0

else

VERIFY:
Applying that patch causes the status subcommand to report correctly.

Regards,

Pete Forman
Senior Programmer

Dolphin Geophysical Limited
A member of the Shearwater GeoServices? Group

Direct Dial: +44 (0) 1892 707173 / Mobile: +44 (0) 7840 797658 /
pete.forman@…
Brockbourne House, 77 Mount Ephraim, Tunbridge Wells, Kent, TN4 8BS, UK
www.shearwatergeo.com

No image "untitled-part.gif" attached to Ticket #1590

Change History (2)

comment:1 Changed 3 years ago by pete.forman@…

None
Filename untitled-part.gif could not be saved, problem: [Errno 13] Permission denied: '/var/lib/trac/projects/SGE/files/attachments/ticket/e66'

comment:2 Changed 3 years ago by Dave Love <d.love@…>

  • Owner set to Dave Love <d.love@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 4935/sge:

Fix #1590: Fix hang in execd status
Modified patch from Pete Forman

Note: See TracTickets for help on using tickets.