Stopping a service

You can stop individual services in IBM® Product Master from the command-line.

About this task

Stopping a service is not the same as aborting a service. If you stop a service, Product Master will attempt to stop the service but only after all tasks that are currently using the service is stopped. The scheduler stops only when it completes all of the jobs that are currently running. If you abort a service, Product Master attempts to shut down the service but if a task is using the service, the abort might fail.

If the service is blocked, it might not stop because it is waiting for an I/O such as file reading or writing.

Procedure

Run the shell script of the specified service from the <install dir>/bin/go directory.
A service is stopped after all currently running tasks that use the specified service are stopped.
  1. Display a list of the full names for all the services that are running on your system. Type svc_control --action=list.
  2. Stop a service on your system. Type svc_control --action=stop --svc_name=<full name>.

Example

In this example, the scheduler service is stopped and given the service name sch1.
svc_control --action=stop --svc_name=sch1_MYHOST

What to do next

To restart the service that you just stopped, see Starting a service.