Professional Documents
Culture Documents
#who r
Getting status report of a service:
#svcs -lp sendmail
Getting a status report on all services:
#svcs -a for smf controlled services
#inetadm for services controlled by inetd
Customizing a service or listing customisations:
#svccfg -s sendmail
#svccfg -s sendmail listcust
Dependency checking:
#svcs -D sendmail checks which service is dependent on sendmail
Determining which service instances are dependent on the multi-user
milestone:
#svcs -D multi-user
Determining the services a service instance is dependent on:
#svcs -d sendmail
Sending an email when transactions go to maintenance:
#svccfg setnotify -g maintenance mailto:sysadmins@example.com
Disabling a service:
#svcadm disable sendmail
The service can be disabled only when there are no dependent services.
Enabling a service:
#svcadm enable sendmail
#svcadm enable r sendmail enables required dependencies
Starting a service
#svcs d sendmail