Starting and stopping the Network SLAPM2 subagent

Before you start the Network SLAPM2 subagent, the following applications need to be be started and initialized:

The Network SLAPM2 subagent can be started from the z/OS® shell or as a started task.

For more information on specifying run-time options, see z/OS Language Environment Programming Guide. For details on setting the LIBPATH environment variable, also see z/OS UNIX System Services Command Reference.

Start of changeThe /tmp/nslapm2.tcpname.pid is a temporary NSLAPM2 subagent pid file that the Network SLAPM2 subagent creates. This file contains the process ID of the current invocation of the Network SLAPM2 subagent.End of change

Restrictions: Start of change
  • If /tmp/nslapm2.tcpname.pid is a symbolic link, it must have an owning UID or GID that matches the EUID or EGID that is assigned to the Network SLAPM2 subagent.
  • If /tmp/nslapm2.tcpname.pid is a hard link or the target of a hard link, users that are outside the owner or group of the directory in which /tmp/nslapm2.tcpname.pid is stored cannot have write access to the directory. Additionally, write access to /tmp/nslapm2.tcpname.pid must be limited to the owning UID or group, for example, --w--w----permissions.
End of change

The Network SLAPM2 subagent can be stopped using the stop command (P NSLAPM2), or using the kill command in the z/OS shell. For example, the following kill command with the TERM signal, where pid is the nslapm2 process ID, enables the Network SLAPM2 subagent to clean up resources properly before terminating itself:

kill -s TERM pid

The nslapm2 process ID can be obtained using the following z/OS UNIX command:

ps  -A