System Administration Guide: Basic Administration

ProcedureHow to Restore a Service That Is in the Maintenance State

  1. Become superuser or assume a role that includes the Service Management rights profile.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC in System Administration Guide: Security Services.

  2. Determine if any process that are dependent to the service have not stopped.

    Normally, when a service instance is in a maintenance state, all processes associated with that instance have stopped. However, you should make sure before you proceed. The following command lists all of the processes that are associated with a service instance as well as the PIDs for those processes.


    # svcs -p FMRI
    
  3. (Optional) Kill any remaining processes.

    Repeat this step for all processes that are displayed by the svcs command.


    # pkill -9 PID
    
  4. If necessary, repair the service configuration.

    Consult the appropriate service log files in /var/svc/log for a list of errors.

  5. Restore the service.


    # svcadm clear FMRI