If like me you are having trouble starting tomcat and apache as
a service on NT because apache may start before tomcat take a look at:

http://support.microsoft.com/support/kb/articles/Q193/8/88.ASP?LN=EN-US&SD=g
n&FR=0&qry=dependencies&rnk=9&src=DHCS_MSPSS_gn_SRCH&SPR=WIN2000

This describes how to make one service starting dependant on another using
regedt32 thus:
"The Registry subkeys for services are located in the following path and can
control how services are loaded.
  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service name>
WARNING: Using Registry Editor incorrectly can cause serious problems that
may require you to reinstall your operating system. Microsoft cannot
guarantee that problems resulting from the incorrect use of Registry Editor
can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and
Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete
Information in the Registry" and "Edit Registry Data" Help topics in
Regedt32.exe. Note that you should back up the registry before you edit it.
If you are running Windows NT or Windows 2000, you should also update your
Emergency Repair Disk (ERD).

To create a new dependency, select the subkey representing the service you
want to delay, click Edit, and then click Add Value. Create a new value name
"DependOnService" (without the quotation marks) with a data type of
REG_MULTI_SZ, and then click OK. When the Data dialog box appears, type the
name or names of the services that you prefer to start before this service
with one entry for each line, and then click OK."


Andy C
Editor The R2 Project
http://www.r2-dvd.org




Reply via email to