[GE users] executing script at failover

Ron Chen ron_chen_123 at yahoo.com
Wed Nov 21 15:06:10 GMT 2007


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

You can write a script that wrap around the qmaster binary,
rename the real qmaster binary to something else, and name your
script "qmaster". Thus, the shadow master will start your script
instead of the qmaster. (But remember to "exec" instead of just
calling the qmaster binary in the script.)

So, you can do whatever pre-processing you want in the script.
Want to check whether the shadow master or init.d is the parent
process? easy -- just do pstree, ptree, or ps/grep and you will
find the answer.

 -Ron


--- Vicente Mï??laga <vmalaga at gmail.com> wrote:
> Hello.
> 
> I need to exec one script at the shadow host when it becomes
> master at the
> failover, but making test i have see that this process is not
> maked with the
> init.d script so i can use it to execute another script.
> 
> Is possible to make this ?
> 



      ____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

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