|
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. A better way to run the server is as a Windows Service, which means when Windows starts up (whether you log in or not) the service starts and starts the database server. When Windows shuts down, the service gracefully stops the database server as well. It's clean and efficient and is the recommended way to run the server.
Note: This is especially helpful for multi-user systems, because when the server computer starts the database server starts automatically. There is no need to start MemberTies or use the server utility to start the server manually.
Creating the Service
Before continuing, be sure everyone is out of MemberTies!
| 1 | Start the Server Utility (see Using the Server Utility if you don't know where this is) |
| 2 | Enter the Windows Service Name (i.e., "MemberTiesServer") and click "Install" |

| 3 | If you are prompted that the server will be stopped, click OK. The server will be stopped and then the process will continue. |
| 4 | You will receive a warning that the service will be installed as a system-level Windows process. All this means is that you're telling MemberTies to install something that Windows may not think it has the rights to do, because MemberTies runs as a normal user. Because of this, if you are running Windows Vista or newer, you may receive an authorization request to perform this action. It is important that you tell Windows to allow the process to continue so service can be installed. |
After the install completes, the message log above will be similar to the following:

| 5 | The service is now installed and will start the next time Windows starts. If you don't want to restart your computer right now, click "Start" to start the service immediately. |
If you are running Windows Vista or newer, you may receive an authorization request to perform this action. This won't happen during Windows startup, because the service will be handling it by itself then.

Removing the Service
The service can be removed at any time if you want to rename it, or want to go back to manual control of the database server.
| 1 | Start the Server Utility (see Using the Server Utility if you don't know where this is) |
| 2 | Click the "Delete" icon. The system will attempt to stop the service and the database server, and then will remove the service. If you are running Windows Vista or newer, you may receive an authorization request to perform this action. |
| 3 | MemberTies will display the results of the service removal as reported by Windows. If the message indicates the removal was successful, you could clear the Windows Service Name field and click Save. |