This section describes how to automatically startup Altibase when booting from HP-UX.
What is HP-UX Startup Script?
In HP-UX, script files that are executed during system boot/shutdown are managed as follows.
- The actual script files that are executed at boot time exist in the /sbin/init.d directory.
- The configuration files for the above script files are in the /etc/rc.config.d directory. Each rc script has one configuration file and sets the definitions and values of variables necessary for script execution.
- Script files that are executed at boot time exist in the /sbin/rc*.d directory, and these files are symbolic links to the files in the /sbin/init.d directory.
How to write a script for automatic startup/stop of Altibase
Create the /etc/rc.config.d/altibase_conf file.As described above, in this file, variables necessary for starting/shutdown of Altibase are defined and values are set.
The contents of this file are shown below.
If the user does not want to automatically start Altibase when booting HP-UX, set the value of START_ALTIBASE to 0. And if ALTIBASE_OWNER or ALTIBASE_HOME is changed, modify the altibase_conf file must be also modified.
Create the /sbin/init.d/alti_start file. This file is a script that actually starts up Altibase by using the Altibase startup command.
Create the /sbin/init.d/alti_stop file.This file is a script that actually shuts down Altibase by using the Altibase shutdown command.
Create the /sbin/init.d/altibase file.
This file can be created by copying the /sbin/init.d/template file, which is actually the file that the Start/Stop script will create symbolic links later on.
Create Symbolic Link of Startup Script and Shutdown Script in /sbin/rc2.d directory.
Modify the execution permission so that each script can be executed normally.
Test to see if it works properly. At this time, the test must be performed under the root account.