Starting servers when the operating system restarts

This section describes how to configure your operating system for automatic restart of Adaptive Server and Backup Server when the system restarts.

On production systems, Adaptive Server, Backup Server, and Monitor Server should restart automatically when the UNIX operating system starts. This is accomplished by making an entry for the server in the operating system start-up script.

Monitor Server must be listed after Adaptive Server in the start-up script. For more information on starting Monitor Server during the operating system restart, see the Monitor Server User’s Guide.

On production systems, Adaptive Server should be started automatically when the UNIX operating system restarts. To do this, add an Adaptive Server start-up script as a file in the /etc/rc2.d directory. For example, if the SYBASE installation is in /home/u/test and your server is named TEST, add the following lines to a file in directory /etc/rc2.d, according to the instructions in your operating system documentation:

export SYBASE 
set SYBASE -c "$SYBASE/$SYBASE_ASE/install/startserver -f $SYBASE/$SYBASE_ASE/install/RUN_TEST &"

NoteThe start-up file is a Bourne shell script. You must use Bourne shell conventions in this file, even if you use the C shell for other tasks.

The first two lines set the SYBASE environment variable so that Adaptive Server is started from the $SYBASE directory. Substitute the path name on the first line for your $SYBASE directory as appropriate.

NoteAll network resources must be available before Adaptive Server is started. Adaptive Server will not start if the network is not up. Be sure that the entry for restarting Adaptive Server follows any commands for starting network operations in the rc2.d directory. Slow start-up of network operations can prevent Adaptive Server from starting, even if the commands in rc2.d are in the correct order.