Delay startup script until 15 minutes after boot...
I've got an RHEL 4 server running oracle 10g, and I need to the enterprise manager console 10-15 minutes after the server starts. Oracle itself is started automatically, and takes some time to spin up, and I'd like the dbconsole to start automatically, but am not sure how oracle would react if the dbconsole starts while the database instances are starting.
Can anyone give me a tip on how to start an init script or command, just once, after a certain period of time has elapsed? If there's also a way to automate the starting of the dbconsole automatically, I'm open to ideas on that as well. Thanks in advance... |
How about just calling a script at boot the first line of which is
Code:
sleep 900 |
I thought sleep in an init script would impact other scripts. Thanks, I'll give sending it to the background a shot...
|
You could also use the "at" command to run a script at some arbitrary time into the future
Code:
at now + 15 minutes -f your_script |
On RH systems, the last script called is
/etc/rc.local which is there for exactly this sort of customized startup. |
Thanks all for the replies! I'm using a script to set some variables and start OEM, and using rc.local and "at" to launch it 15 minutes after startup...
|
Alternately, use a script, whose first line is
sleep 900 and start it from rc.local like this nohup /path/myscript & which will disconnect it from the startup and background it. |
All times are GMT -5. The time now is 07:33 PM. |