Kbase P135635: How to auto start and stop a database?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/10/2008 |
|
Status: Unverified
GOAL:
How to auto start and stop a database?
GOAL:
What is the recommended way to have the databases start and stop when the system starts or stops?
FACT(s) (Environment):
SuSe Enterprise Server 10
OpenEdge 10.1x
FIX:
You can create appropriate scripts within the /etc/rc.d/rc2.d directory.
rc#.d: The # is the unix/linux run level. As in, if you ran "init 2" it will run the scripts within the rc2.d, "init 3" = rc3.d directory etc. When you startup and shutdown the machine it automatically goes through each of these run levels and runs the appropriate scripts.The rc2.d directory is what you need (multi-user startup/shutdown). So you would usually create scripts within rc2.d to start & stop the Progress processes.The scripts starting with "S" are startup scripts used for starting whatever you want at that run level. "K" scripts are kill scripts used to end whatever you want at that run level.The numbers after the "S" or "K" are also relevant, as this is the order in which it will start each of the scripts so you need to make sure your scripts run after the other services.