Package: gridengine-exec Version: 6.2-4 Severity: normal Tags: patch The init.d script does not detect a running daemon and therefore tries to start another sge_execd instance when rerun with 'start'. That naturally causes problems, since the relevant port is already occupied and such scenario is not supported anyway.
The reason is that start-stop-daemon fails to detect the running instance of 'sge_execd' when using the wrapper script at usr/sbin/sge_execd' for testing. The attached patch is one way to fix it (by using the proper binary at /usr/lib/gridengine/sge_execd for testing. Michael -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.31-rc5-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- GPG key: 1024D/3144BE0F Michael Hanke http://mih.voxindeserto.de
>From 6523c67875d080867a4056664f1af03e8a22a61d Mon Sep 17 00:00:00 2001 From: Michael Hanke <[email protected]> Date: Fri, 30 Oct 2009 19:11:00 -0400 Subject: [PATCH] Fix init script to prevent multiple daemon start attempts. Reason: start-stop-daemon does not detect a running sge_execd if the test is done using the wrapper script at /usr/sbin/sge_execd. --- debian/gridengine-exec.init | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/debian/gridengine-exec.init b/debian/gridengine-exec.init index 89410ec..c3cebe1 100644 --- a/debian/gridengine-exec.init +++ b/debian/gridengine-exec.init @@ -37,7 +37,7 @@ do_start() { # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec /usr/lib/gridengine/$NAME --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ -- 1.6.3.3

