Starting and Stopping NIS Daemons

Use Web-based System Manager, SMIT, or the following procedure to start or stop NIS daemons.

Prerequisites
  1. NFS must be installed on your system.
  2. The portmap daemon must be active. To check this, use the following command:
    lssrc -s portmap

    The result looks similar to the following:

    Subsystem         Group          PID          Status
    portmap          portmap        4388         active

Procedure

The five NIS daemons are controlled by the System Resource Controller (SRC). As illustrated in the following table, four of the daemons have the SRC group name yp:

Daemon Name Subsystem Name Group Name
keyserv keyserv keyserv
ypbind ypbind yp
yppasswdd yppasswdd yp
ypserv ypserv yp
ypupdated ypupdated yp

To start or stop NIS daemons, use the Web-based System Manager or use one of the following procedures.

  • Using SMIT:
    • Enter the SMIT smit ypstartstop fast path.

      Select a menu option, depending on whether you want to start or stop the ypserv, ypbind, yppasswdd, or ypupdated daemon. Once you make your selection, the daemon you specified will be started or stopped.

    • To start the keyserv daemon, use the SMIT smit mkkeyserv fast path.
    • To stop the keyserv daemon, use the SMIT smit rmkeyserv fast path.
  • Using the command line to start or stop the NIS daemons, run the startsrc or stopsrc command. You can start or stop the daemons individually or as a group. For example:
    • To start all the daemons (not including the keyserv daemon), enter:
      startsrc -g yp
    • To stop all the daemons, enter:
      stopsrc -g yp
    • To start a single daemon, enter:
      startsrc -s daemon_name
    • To stop a single daemon, enter:
      stopsrc -s daemon_name