To see all running services
svcs
To see all services, including not-running
svcs -a
To check for services having problems (“in maintenance mode”)
svcs -x
NAME : svc:/network/smtp:sendmail
get detail about any one service.
svcs -l NAME
To see what processes a service is running:
svcs -p NAME
Controlling existing services
svcadm -t enable NAME # Start service
svcadm -t disable NAME # Stop service
svcadm enable NAME # Start service (persists over reboots)
svcadm disable NAME # Start service (persists over reboots)
svcadm restart NAME # (only if defined in manifest?)
svcadm refresh NAME # usually does a "kill -HUP" if defined
mv /etc/rc2.d/S75cron /etc/rc2.d/s.S75cron
svcadm disable system/cron:default
edit /etc/inet/inetd.conf, uncomment the finger line
svcadm enable network/finger:default
/etc/init.d/sshd stop
svcadm disable -t network/ssh:default
/etc/init.d/sshd start
svcadm enable -t network/ssh:default
/etc/init.d/sshd stop; /etc/init.d/sshd start
svcadm restart network/ssh:default
kill -HUP `cat /var/run/sshd.pid`
svcadm refresh network/ssh:default
ok boot -m verbose
svcs -x
svcs -x -v
svcs -p network/smtp:sendmail
svcs -d network/smtp:sendmail
svcs -D network/smtp:sendmail
edit /etc/inittab
svcadm milestone -d milestone/single-user:default
svcadm milestone milestone/multi-user-server:default
boot -m milestone=
milestone (single-user, multi-user, multi-user-server)
Логи смотреть тут:
/var/adm/messages
/var/svc/log
/etc/svc/volatile
svccfg export postfix > my.smf
svccfg validate
svccfg import
Комментариев нет:
Отправить комментарий