|
Running the Server as a Windows Service |
|
Normally, when you start MemberTies, it starts the database server if it isn't already running. Thereafter, the server continues to run until it is manually stopped, or the computer is shut down. If you would like to have Windows start the server for you automatically without starting any instance of MemberTies itself, this tutorial explains how to set it up.
This tutorial was provided by one of our users, Kyle556, who may be contacted at kyle556@shaw.ca if necessary. Screen examples may not reflect your particular installation. This tutorial is provided as a guide only. It is not necessary to follow this procedure in order to use the system.
------------------------------------------
Running the Server as a Windows Service
This guide will help in installing the MemberTies database server as a service, allowing it to run without the need to start any copy of MemberTies.
Note: This guide assumes you are running Windows Server 2003 (or SBS 2003), but other versions of Windows Server should be similar. This guide also assumes you have a strong knowledge of Windows services and the Registry. If you do not, DO NOT PROCEED! Find someone with the proper skills to assist you. This guide is provided as-is. Proceed at your own risk.
Open the Command Prompt and find the Windows Server Resource Kit directory. If you don't have the Resource Kit, download it from Microsoft here: (2003 version)
By default, the Resource Kit installs in c:\program files\windows resource kit\tools but to make command lines shorter to type in, I recommend copying the tools folder to c:\ and renaming it "reskit", or change the path to c:\reskit during the install.
Type the command as shown below (adjusting for your path).

The service has been created, but can't be used until the path has been added into the registry.
Open the registry by running regedit from the command line. WARNING: Regedit is a very powerful program. Improper use can force you to reinstall your operating system. Proceed at your own risk!

Navigate to this registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MemberTiesServer

Create the new key as follows:
| 1 | From the Edit menu, click "Add Key" and name it "Parameters" |
| 2 | Next from the Edit menu, click Add Value and type this information. |
- Value Name: Application
- Data Type : REG_SZ
- String : YOUR PATH

The path string is based on your install of MemberTies. The path can be found by holding down the CTRL key when you click "Start Server" using the Local Database Server utility as shown below:

Now you can start your service from the Service Manager. Don't forget to change the Startup Type to Automatic. If you don't do this step, the new service won't start when Windows boots up.

The MemberTies database server should now be running from boot up without the need to start it manually.