Submit a ticketCall us

Putting Your Logs Where They Belong with the New SolarWinds Log Manager for Orion

The new SolarWinds® Log Manager for Orion® finally puts your log data right where it belongs, in the heart of your Orion console. Gain insight into the performance of your infrastructure by monitoring your logs in a unified console allowing you to see a wealth of information about the health and performance of your network and servers.

Reserve a Seat for Wednesday May 23rd 11am CDT | Reserve a Seat for Tuesday May 22nd 10:30am GMT | Reserve a Seat for Tuesday May 22nd 1pm SGT / 3pm AEST

Home > Success Center > Kiwi CatTools > Kiwi CatTools 3.11 Administrator Guide > Decide to install Kiwi CatTools as an Application or Service? > Installing CatTools as a Service > How to add Service Dependencies

How to add Service Dependencies

Table of contents
No headers
Created by Caroline Juszczak, last modified by Caroline Juszczak on Jun 28, 2016

Views: 208 Votes: 0 Revisions: 2

There are a couple of different ways to add service dependencies:

  • The first method using sc.exe creates a dependency specifically for an existing service. If the service is deleted (i.e. CatTools is uninstalled) then the dependency is also lost.
  • The second method modifies the Windows registry (via RegEdit) to create a new value, listing the dependencies. This value will then be applied every time the CatTools service is created on the system (i.e. if you upgrade or reinstall CatTools to your system), therefore this is the recommended 'permanent' fix.
 
 

How to add service dependencies using sc.exe

This is the easiest method to add service dependencies to the existing CatTools service. However if the CatTools service is uninstalled, then the dependencies are also lost.

 

To add a service dependency using sc.exe, you can either run a command from the Start (button) > Run dialog, or you can run the cmd.exe from the Run dialog and enter the command in the cmd.exe window.

 

For Example:

To add dependencies to the CatTools service for the LanmanWorkstation, TCPIP and WMI services you can use either method below to execute the command: 

 

sc config "CatTools" depend= LanmanWorkstation/TCPIP/WMI

 

The important things to note are:

  • the CatTools service must be stopped before configuring dependencies.
  • the CatTools service must be contained within double quotes " " because the service name has a space within it.
  • if adding multiple dependencies, separate them using a '/' (forward slash)
  • the space ' ' between the 'depend=' text and the first dependency service name. If you do not include this space, although it will appear to work OK, the dependency will not be applied.

 

- using the 'Run' method. (Note: the full command to be executed cannot be displayed in the open box, although you can see it by clicking in the box and scrolling to the right.)

 

RunDialog

 

- using the cmd.exe method.

 

cmd1

 

This example will ensure that the Workstation, WMI (Windows Management Interface) and TCP/IP stack services are running before trying to start CatTools Service. Which service dependencies you need to add for your system depend entirely on your specific machine and what services are set to run on it at start-up.

 

If you need to remove dependencies, the simplest way is to uninstall CatTools, (a reboot after uninstall is preferred) and reinstall so that the modified CatTools Service is removed and replaced with the default one from within the CatTools installer.

 

You can use the command:

 

sc config "CatTools" depend= none

 

however this sometimes leave the CatTools service in an unusable state as the dependencies are not properly deleted.

If this is the case on your system, then the only solution is to uninstall CatTools, reboot the system, then reinstall CatTools again.

 

How to add service dependencies using RegEdit

 

This method is the preferred solution as it then ensures that the CatTools service dependencies are always applied every time the service is created, therefore you don't need to run through the sc.exe method whenever you reinstall or upgrade CatTools.

 

To ensure that the required services have started before CatTools, you will need to modify the registry setting as follows:

 

Section: HKEY_LOCAL_MACHINE\SOFTWARE\Kiwi Enterprises\CatTools3

 

Value (STRING): NTServiceDependencies

 

Default value: Blank

Type: Text string of service names. Delimited by semi-colons.

 

E.g. ServiceName1;ServiceName2;ServiceName3

 

Step by step example:

  1. Uninstall CatTools.
  2. Run RegEdit.
  3. Locate the section HKEY_LOCAL_MACHINE\SOFTWARE\Kiwi Enterprises\CatTools3.
  4. Create the new string value of NTServiceDependencies.
  5. Modify the value data to include the list of services that need to start first , e.g. "LanmanWorkstation;TCPIP;WMI" (without the quotes).
  6. Install CatTools again. 

The example above will ensure that the Workstation, WMI (Windows Management Interface) and TCP/IP stack services are running before trying to start the CatTools Service.

Last modified

Tags

Classifications

Public