How do I disable a solaris 10 service?



  • To disable a solaris 10 service, run the following:

    # svcadm disable svc:/system/webconsole:console
    

    To temporarily disable a solaris 10 service until the next reboot, do the following:

    # svcadm disable -t svc:/system/webconsole:console
    

    Note that you may see the resource with a in transition state while disabling and enabling a solaris service, like below with * against the state.

    For instance after enabling a service.

    # svcs svc:/system/webconsole:console
    STATE          STIME    FMRI
    offline*       10:29:26 svc:/system/webconsole:console
    

    While disabling a service.

    # svcs svc:/system/webconsole:console
    STATE          STIME    FMRI
    online*        10:22:01 svc:/system/webconsole:console
    

    Eventually you should see, on of the following depending if you enabling or disabling a service.

    # svcs svc:/system/webconsole:console
    STATE          STIME    FMRI
    online         10:31:22 svc:/system/webconsole:console
    

    or

    # svcs svc:/system/webconsole:console
    STATE          STIME    FMRI
    disabled       10:23:44 svc:/system/webconsole:console
    

Log in to reply
 

© Lightnetics 2024