Stops a subsystem, a group of subsystems, or a subserver.
stopsrc [ -h Host ] [ -f | -c ] { -a | -g Group | -p SubsystemPID | -s Subsystem }
stopsrc [ -h Host ] [ -f ] -t Type [ -p SubsystemPID ] [ -P SubserverPID | -o Object ]
The stopsrc command sends a request to the System Resource Controller (SRC) to stop a subsystem, a group of subsystems, or all subsystems. The stopsrc command sends the System Resource Controller a subsystem request packet that is forwarded to the subsystem for a stop subserver request.
In the absence of the -f (stop force) flag, a normal stop action is assumed. A normal stop requests that a subsystem or subserver complete all current processing, release resources when all application activity has been completed, and then end. No new requests for work should be accepted by the subsystem.
A forced stop requests that a subsystem or subserver end quickly, releasing all resources, but not wait for application activity to complete.
A cancel action stops the subsystem after the subsystem's resources are released and after a grace period. This grace period is specified in the subsystem object class. The cancel stop is used only for subsystem stops and is always sent to the subsystem as the SIGTERM signal. The subsystem should catch this signal, perform subsystem clean up operations, and end. If the subsystem does not end within the wait time period, specified in the subsystem object class, the subsystem is sent a SIGKILL signal to ensure that the subsystem stops.
If the subsystem uses sockets or message queues for communication, a packet is constructed and sent to the subsystem. If the subsystem uses signals for communication, the subsystem is sent the appropriate signal from the subsystem object class.
stopsrc -h zork -s srctest -fThis forces a stop on all the instances of the srctest subsystem on the zork machine.
stopsrc -g tcpip -cThis activates a stop cancel on all the subsystems in the tcpip group.
stopsrc -t tester -p 1234This stops the tester subserver that belongs to the srctest subsystem with a subsystem PID of 1234 .
stopsrc -aThis stops all the active subsystems on the local machine.
The startsrc command.
The System Resource Controller Overview in AIX Version 4.3 System Management Guide: Operating System and Devices gives an explanation of subsystems, subservers, and the System Resource Controller.