Opened 4 years ago

Closed 4 years ago

#1590 closed defect (fixed)

Hangs in execd status - with FIX

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


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

Running this command hangs with no output.

sudo /sbin/service sgeexecd.p6444 status

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

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 @@


if [ "$status" = true ]; then

+ pidfile=$execd_run_dir/

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


Applying that patch causes the status subcommand to report correctly.


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 /
Brockbourne House, 77 Mount Ephraim, Tunbridge Wells, Kent, TN4 8BS, UK

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

Change History (2)

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

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 4 years ago by Dave Love <…>

  • Owner set to Dave 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.