- 论坛徽章:
- 0
|
请高手把关 有关自动启动Sybase的设置
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 syst ems, 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 Sybase Adaptive Server Enterprise 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.
这是我看到的文档,有两点
1。我觉得aix下应该是要加>;号的,除非startserver有这样的参数
2。sleep是加在runserver file里的。 |
|