Creating a System Restart Script for IBM RS/6000

On production systems, you can restart SAP ASE automatically whenever the UNIX operating system restarts.


All network resources must be available before you start SAP ASE; otherwise, SAP ASE does not start. Also, your server does not start if the network is not running.

To have SAP ASE restart automatically, place the startserver command in the /etc/inittab file.
Here is a suggested format for an SAP ASE 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 SAP installation directory (specified as the SAP environment variable), and RUN_servername is the RUN_server_name file for the server you are starting.

Make sure the entry for starting SAP ASE follows any entry for /etc/rc.tcpip and /etc/rc.nfs in the /etc/inittab file.

Slow start-up of network operations may prevent SAP ASE 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 SAP ASE to wait before starting by inserting a sleep command before the server start-up command in the RUN_server_name file. The sleep command is in the form:
sleep seconds_of_rest
Note: To enable restart of a Backup Server when the operating system starts, add a Backup Server start-up command to /etc/inittab. Use the path of the Backup Server RUN_server_name file in this command.