Starting servers when the operating system restarts

Using the startserver command

To start a server from the command line, enter:

$SYBASE/$SYBASE_ASE/install/startserver [ -f RUN_server_name file ]

where $SYBASE/$SYBASE_ASE/install/startserver is the full path name of the startserver utility, and RUN_server_name file is the full path name of the RUN_server_name file (usually $SYBASE/$SYBASE_ASE/install/RUN_server_name).

If your Adaptive Server is named SYBASE, the RUN_server_name file specification is optional.

You must have read and write permissions on the master device for an Adaptive Server to start it with startserver. For more information about startserver, see the Adaptive Server Utility Guide.

Using the monserver and backupserver commands

Use the monserver command to start Monitor Server from the UNIX command line. For details, see the Adaptive Server Enterprise Monitor Server User’s Guide.

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.

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 at operating system restart, see the Monitor Server User’s Guide.

Note The startup script must set up all the required Sybase environment variables, or source SYBASE.csh or SYBASE.sh, before starting the server.

20

Adaptive Server Enterprise

Page 36
Image 36
Sybase DC35823-01-1500-04 manual Starting servers when the operating system restarts, Using the startserver command