creating correct init.d scripts
Posted on 2005-05-09
I'm trying to create a startup script for an Oracle AS mid-tier. It waits for the existence of an ldap on another server (using wget), then starts Oracle's opmn which starts several daemons, then starts Oracle's emctl which starts yet other processes.
I have several questions.
1) what are the minimum set of commands that should be in my script start,stop,status,restart etc?
2) where do the logs for inits usually go, and how do I correctly write to a syslog? The whole syslog thing has me confused...
3) The "wait" for the other server is done using "start &" in order to not block the startup. Is this right, or is this redundant as init does something like this already?