There are three commands used in Solaris starting or stoping services
svcadm
svcs
svcfg
svcadm
This command is used for enabling or disabling service
svcadm enable svc:/network/ssh:default
svcadm disable svc:/network/ssh:default
svcadm restart,refresh clear
svcs:
This command is used for list the installed services
svcs -a | grep ssh
online 13:53:52 svc:/network/ssh:default
svcs -xv - > option lists information about every service that isn't running
svccfg
svccfg command is used to import, export, and modify the configurations of services in the repository
svccfg
svc:> select network/smtp
svc:/network/smtp> listprop
system-log dependency
system-log/entities fmri svc:/system/system-log
system-log/grouping astring optional_all
system-log/restart_on astring none
system-log/type astring service
identity dependency
identity/entities fmri svc:/system/identity:domain
identity/grouping astring require_all
identity/restart_on astring refresh
identity/type astring service
name-services dependency
name-services/entities fmri svc:/milestone/name-services
name-services/grouping astring require_all
name-services/restart_on astring refresh
name-services/type astring service
network-service dependency
network-service/entities fmri svc:/network/service
network-service/grouping astring require_all
network-service/restart_on astring none
network-service/type astring service
fs-local dependency
fs-local/entities fmri svc:/system/filesystem/local
fs-local/grouping astring require_all
fs-local/restart_on astring none
fs-local/type astring service
general framework
general/entity_stability astring Unstable
general/single_instance boolean true
No comments:
Post a Comment