Wednesday, June 6, 2012

HOW TO: handle a service on Solaris 10

In The Name Of Allah The Beneficent The Merciful 


svcs
Lists all services.
svcadm
Starts/Stops/Restarts the service.
e.g 1 :
> svcs | grep sendmail (or smtp - see man examples)
STATESTIMEFMRI
online13:45:10svc:/network/smtp:sendmail
> svcadm -v disable sendmail (or smtp)
svc:/network/smtp:sendmail
e.g 2 :

> svcs | grep ssh

online13:45:10svc:/network/ssh:default
> svcadm -v restart ssh
Action restart set for svc:/network/ssh:default

No comments:

Post a Comment