Panel |
---|
On This Page: |
Warning | ||
---|---|---|
| ||
Knowledge of Windows Services is required to complete this section. |
The ServiceOptimizer service allows complete startup of a ServiceOptimizer instance as a WINDOWS® service. The service installation / start / stop is provided by the SPService.exe
executable supplied in the %SPHOME%/bin
directory.
SPService.exe
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Installation
The ServiceOptimizer service is installed by default as part of the installation of the product.
Thus it is possible to start, and stop the ServiceOptimizer instance using the usual service control manager and net start
/ net stop
instructions.
Note |
---|
It is recommended that a clean instance startup, directly using |
Default installation gives a set up for manual running of the ServiceOptimizer service, running as the system account, and allowing the service to interact with the desktop. Se later sections for setting up to run automatically on boot and as named services etc.
Setting up a Default Environment
The default installation names the service servicepower
and uses the ServiceOptimizer environment for the system account. This starts / stops a single instance of ServiceOptimizer. The default installation also allows interaction with the desktop (when a user is logged in).
The registry entries DATABASE
and LOCAL
may need to be modified from the default created on install:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Servicepower<name>\Environment
Include Page | ||||
---|---|---|---|---|
|
The LOCAL
parameter (which is only used by Oracle) should be set to the Oracle TNS name. For a non-distributed server (Admin ServiceOptimizer System Configuration Distributed System) the LOCAL
parameter should be deleted if the database is local to this server. For SQL Server this parameter is not used and it is recommended to set it to a blank string, or it can be removed.
Changing Default Settings
No Interaction with Desktop | This can be setup by using StartUp|ControlPanel|Administrative Tools|Services|servicepower|startup , and un-selecting the interaction with desktop check box. It is recommended that this is only done once the ServiceOptimizer system has been fully configured. | ||||||
---|---|---|---|---|---|---|---|
Startup / Shutdown Time | The following 2 registry settings (
If the system takes longer than these settings to startup / shutdown, the service control manager will log an event to the application event log indicating that the startup / shutdown failed. | ||||||
Running as a different user account | This can be done by simply selecting servicepower in StartUp|ControlPanel|AdministrativeTools|Services , selecting the startup button, and configuring the service accordingly. In the case of running as a user other than system account, all the environment settings must be declared as detailed above. Any user must have the appropriate permissions to access the database. | ||||||
Multiple ServiceOptimizer instances | This must be done by using named services as described in Windows SPService.exe. Each named service must run under a separate user account (see above) and with its own database user. For example: | ||||||
Autostart on Boot | The instance can be set up to autostart on boot, by setting the service to start automatically.
|
Tips for Clean Service Starts
Tip |
---|
|
Note | ||
---|---|---|
| ||
The The solution is to move the |
.
Starting / Stopping the ServiceOptimizer instances
There are 3 ways to achieve this:
1) Use ControlPanel|Administrative Tools|Services
to start ServiceOptimizer
2) Use the net start
/ net stop
command e.g. net start servicepower
(or net start servicemanager<name>
if you have named the servicepower service)
3) Use the WINDOWS ServerManager to start / stop servicepower remotely