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 can be restarted automatically whenever the UNIX operating system restarts. To have Adaptive Server restart automatically, place the startserver command in the /etc/inittab file.
Following is a suggested format for an Adaptive Server start-up command to add to /etc/inittab:
"sybase:2:wait:/release_directory/install/startserver -f \ RUN_servername /dev/console 2>&1"
Where release_directory is the full path to the Sybase installation directory (specified as the SYBASE environment variable), and RUN_servername is the runserver file for the server you are starting.
Make sure that the entry for starting Adaptive Server follows any entry for /etc/rc.tcpip and /etc/rc.nfs in the /etc/inittab file. All network resources must be available before you start Adaptive Server; otherwise Adaptive Server will not start. Also, your server will not start if the network is not up.
Slow start-up of network operations can also prevent Adaptive Server from starting, even when the commands in the /etc/rc.tcpip file are in the correct order. You can designate a period of time for Adaptive Server to wait before starting by inserting a sleep command before the server start-up command in the runserver file. The sleep command is in the form:
sleep seconds_of_rest
To enable restart of a Backup Server at the operating system restart, add a Backup Server start-up command to /etc/inittab. Use the path of the Backup Server runserver file in this command.