On production systems, Adaptive Server should start 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 may prevent Adaptive Server from starting, even if the commands in rc2.d are in the correct order.