Solaris: service management facility commands
List all running services
# svcs
List detailed information about a service
# svcs -x
List the services a given service depends of
# svcs -d
List the services that depend of a given service
# svcs -D <service>
Identify the processes associated with a service
# svcs -p <service>
Show all available information about a service
# svcs -l <service>
Enable a service
// persistent accross reboots # svcadm enable <service> // temporary # svcadm enable -t <service>
Disable a service
// persistent accross reboots # svcadm disable <service> // temporary # svcadm disable -t <service>
Restart a service
# svcadm restart <service>
Refresh a service (performs a configuration file reread)
# svcadm refresh <service>
Clear the maintenance state of a service
# svcadm clear <service>
List all properties of a given service
# svcprop <service>
List a specific property of a given service
# svccfg -s <service> listprop
Set a property of a given service
# svccfg -s <service> setprop "<property> = <value>"
Leave a Reply