Windows: Manually creating and configuring a Windows service
If you configured the server by using the configuration wizard, a Windows service was created automatically. If a service was not created automatically, you must create it.
Before you begin
Procedure
To create a Windows service and configure the startup options for the service, complete the following step:
Open a command window and enter the sc.exe create command:
sc.exe create server_name binPath= "path_to_server -k instance_name"
start= start_type obj= account_name password= password
where:- server_name
- Specifies the name of the server service.
- path_to_server
- Specifies the path to the dsmsvc.exe executable
file, including the file name. This path is the default path:
C:\Program Files\Tivoli\TSM\server
- instance_name
- Specifies the name of the DB2® instance, which is also the name of the server instance, for example, Server1.
- start_type
- Specifies the method for starting the service. To automatically start the service, enter auto. If you specify the auto option, the service starts automatically at system startup and restarts automatically whenever the system is restarted. To manually start the service, enter demand.
- account_name
- Specifies the user ID for the account under which the service runs. For example, the account name might be Administrator. This parameter is optional. If it is not specified, the Local System account is used.
- password
- Specifies the password for the account_name user account.
Tip: When you enter the command, ensure
that you enter a space after each equal sign (=).