Check the status of a service:
> svcs ntp STATE STIME FMRI disabled Feb_27 svc:/network/ntp:default
View a service’s dependencies:
> svcs -d ntp STATE STIME FMRI online Feb_27 svc:/network/service:default
To see what other services depend on a given service:
> svcs -D ntp STATE STIME FMRI online Feb_27 svc:/milestone/multi-user:default
To enable a service:
> pfexec svcadm enable ntp
To disable a service:
> pfexec svcadm disable ntp
To view a service’s processes:
> svcs -p ntp
STATE STIME FMRI
online 12:19:45 svc:/network/ntp:default
12:19:45 8331 xntpd
See also Easier System Administration with Service Management Facility.
Post a Comment