Sie sind auf Seite 1von 1

How to handle a service on Solaris 10:

svcs

Lists all services.

svcadm

Starts/Stops/Restarts the service.

e.g 1 :

> svcs |grep sendmail (or smtp - see man examples)


STATE STIME FMRI
online 13:45:10 svc:/network/smtp:sendmail
> svcadm -v disable sendmail (or smtp)
STATE STIME FMRI
disabled 13:45:10 svc:/network/smtp:sendmail

e.g 2 :

> svcs |grep ssh


STATE STIME FMRI
online 13:45:10 svc:/network/ssh:default
> svcadm -v restart ssh
Action restart set for svc:/network/ssh:default.

More help: http://unix.derkeiler.com/Mailing-Lists/SunManagers/2005-07/0234.html


http://docs.sun.com/app/docs/doc/817-1985/6mhm8o5vd?a=view
http://sysunconfig.net/unixtips/solaris.html

Das könnte Ihnen auch gefallen