Starting and Stopping Solaris services with svcadm

The svcadm command is used to enable, disable, restart, or refresh services. This post simply provides a list of useful service manager commands

  • to show what system services are running or disabled
    # svcs -a
  • To start, stop or restart a service
    # svcadm enable ssh
    # svcadm disable ssh
    # svcadm refresh ssh
  • to clear maintenance flag and start a service
    # svcadm clear ssh
    # svcadm enable ssh
  • Use -t to make change non persistant
    # svcadm enable -t ssh
  • to switch to a milestone
    # svcadm milestone svc:/milestone/single-user:default