1833053 Members
2287 Online
110049 Solutions
New Discussion

rc startup script

 
joe clark
Advisor

rc startup script

We are running 2 sybase instances under 11i,
and some control-M software, the problem we
run into is that the first sybase instance may take 10 minutes to start up, and the 2nd instance is already starting up, but not successfully with control-m, if it is a timing problem, is there anyway to have the 2nd instance wait to start until the first application (pem with sybase), is fully started. Currrently we are using rc2.d for
the first instance and rc3.d for the 2nd instance. We are going to put some echo's in the 2nd startup to see how far it is getting in the its startup. Thanks in Advance

5 REPLIES 5
harry d brown jr
Honored Contributor

Re: rc startup script

Why not combine the two startup scripts into one?

live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: rc startup script

Hi Joe:

The easy answer is to have your first process write a lockfile when it is finished and have your second script loop with sleeps until the file is found. On the way down, your second script should remove the file and the first should loop until the file no longer is found.
If it ain't broke, I can fix that.
Santosh Nair_1
Honored Contributor

Re: rc startup script

I would think the easiest way to do this would be combine the two scripts into one as Harry has already mentioned. Then within the script, start up the databases and wait until they're up before starting up control-m.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Krishna Prasad
Trusted Contributor

Re: rc startup script

Change your script for the second script
to loop until the first instance is started before it even tries to start its instance.
Positive Results requires Positive Thinking
Deshpande Prashant
Honored Contributor

Re: rc startup script

Hi
In second instance startup, loop on sleep till the first instance is started fully.

Thanks.
Prashant.
Take it as it comes.