Startup Scripts
The location of the startup scripts depends on the configuration of your system. It is recommended that your system administrator assist in this process, since the system administrator is the most knowledgeable person about the specific configuration of your system. It is also useful to understand how the startup scripts work. In basic terms, the process is the following:
- After booting up, the operating system runs the init process.
- init reads the configuration file /etc/inittab which describes, among other things, the default run-level. The run-level could be from 0 to 6. For example, a common Linux machine starts in run-level 5, which means it supports a graphic user interface (X11 server), multiusers, and networks. Run-level 3 is also very common in Linux and Solaris. This means that the system has support for multiusers and networks but not for a graphic user interface (X11 server).
- Based on the run-level, init goes to the corresponding rc*.d directory and loads all the startup scripts that are there. For example, if the run-level is 3, init reads and executes all the scripts under /etc/rc3.d. The name of the scripts is also important. Those with a name starting with s are loaded when starting the system and those starting with k are loaded when shutting down the system. The number in the name helps init run the scripts in the correct order.
The location of the rc*.d directories and the default run-level varies between operating systems. Make sure that you have a symbolic link to the SFX startup scripts under the rc*.d directory that corresponds to the system's run-level.
One script, sfxd, handles the startup for Apache and MySQL processes. During installation, sfxd is located at /etc/init.d. Typically, a startup symbolic link is created for it from /etc/rc2.d, but depending on your system it could be from /etc/rc3.d or any other /etc/rcX.d directory. sfxd needs to be run by the root user. It runs two scripts, one to start Apache and one to start MySQL. sfxd first starts the reverse proxy Apache server and then starts the individual Apache servers for each instance. Output from the script is placed in /exlibris/sfx_ver/sfx4_1/tmp/sfxd.log.