[GE users] suspend_method can't call scripts !?

Rui Ramos rramos at iric.up.pt
Tue Oct 3 16:47:33 BST 2006


    [ The following text is in the "ISO-8859-15" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]


 Please ignore the last post.

 it seems i have to call '/opt/n1ge/suspend.sh $job_pid' its woking now.

On Tue, 3 Oct 2006 14:59:31 +0100
Rui Ramos <rramos at iric.up.pt> wrote:

> 
>  Hi all,
> 
>  I was trying to set a suspend/resume method associated to the queue all.q. 
>  If i set in the suspend procedure a binary like:
> 
>   /usr/bin/kill -s SIGSTOP -- -$job_pid
> 
>  It works fine but if i set a script like /opt/n1ge/util/suspend.sh with the same 
>  content it doesn't work. 
>   Does anybody had this issue ?
> 
>  From the job trace i can get this info:
> 
> 10/03/2006 13:38:54 [500:27206]: wait3 returned -1
> 10/03/2006 13:38:54 [500:27206]: mapped signal WINCH to signal STOP
> 10/03/2006 13:38:54 [500:27206]: queued signal STOP
> 10/03/2006 13:38:54 [500:27206]: /opt/n1ge/util/suspend.sh -> overriddes kill(-27207, STOP)
> 10/03/2006 13:38:54 [500:27245]: starting suspend_method command: /opt/n1ge/util/suspend.sh
> 10/03/2006 13:38:54 [10004:27245]: start_as_command: pre_args_ptr[0] = argv0; "/opt/n1ge/util/suspend.sh" shell_path = "/bin/sh"
> 10/03/2006 13:38:54 [10004:27245]: execvp(/bin/sh, "/opt/n1ge/util/suspend.sh" "-c" "/opt/n1ge/util/suspend.sh")
> 10/03/2006 13:38:54 [10004:27245]: not a GUI job, starting directly
> 10/03/2006 13:38:54 [500:27206]: wait3 returned 27245 (status: 0; WIFSIGNALED: 0,  WIFEXITED: 1, WEXITSTATUS: 0)
> 10/03/2006 13:38:54 [500:27206]: reaped suspend command
> 
>  From the man page queue_conf(5)
>        If an executable path is given (it must be an absolute path starting with  a
>        "/") then this command together with its arguments is started by Grid Engine
>        to perform the appropriate  action.  
>  
> 
>                                                            Thanks in advance, Rui
> 
> -- 
> Rui Ramos
> ==============================================
> Universidade do Porto - IRICUP
> Pra?a Gomes Teixeira, 4099-002 Porto, Portugal
> email: rramos[at]iric.up.pt
> ==============================================
> 


-- 
Rui Ramos
==============================================
Universidade do Porto - IRICUP
Pra?a Gomes Teixeira, 4099-002 Porto, Portugal
email: rramos[at]iric.up.pt
==============================================

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list