Solaris 10 provide some new (interesting) tools to manage services. =====Services managements===== ====Start/Stop/Reload a service==== # svcadm enable network/ssh # svcadm disable network/ssh # svcadm refresh network/ssh ====Check status==== # svcs -x network/ssh svc:/network/ssh:default (SSH server) State: online since Sat Mar 19 12:49:43 2005 See: sshd(1M) See: /var/svc/log/network-ssh:default.log Impact: None. ====Check dependencies==== # svcs -l network/ssh fmri svc:/network/ssh:default name SSH server enabled true state online next_state none state_time Wed May 04 16:36:29 2005 logfile /var/svc/log/network-ssh:default.log restarter svc:/system/svc/restarter:default contract_id 44 dependency require_all/none svc:/system/filesystem/local (online) dependency optional_all/none svc:/system/filesystem/autofs (online) dependency require_all/none svc:/network/loopback (online) dependency require_all/none svc:/network/physical (online) dependency require_all/none svc:/system/cryptosvc (online) dependency require_all/none svc:/system/utmp (online) dependency require_all/restart file://localhost/etc/ssh/sshd_config (online) =====Learning more about SMF==== ====Others links==== * [[http://www.rfcgr.mrc.ac.uk/~ptribble/Solaris/smf.html|A small paper about SMF to use with Postfix]] * [[http://blogs.sun.com/roller/page/lianep/Weblog?catname=%2FSolaris|Liane Praza's blog]] * [[http://mediacast.sun.com/share/lianep/t-smf-general-march-2005.pdf|A Liane Praza's SMF presentation]] * [[http://www.sun.com/bigadmin/content/selfheal/|Predictive Self-Healing]] * [[http://www.sun.com/bigadmin/content/selfheal/sdev_intro.html|SMF Service Developer Introduction]] ====A simple example=== Note: this is my first one. It is very simple. I need to work on it, especially for the name of instance (sunoneds here). __sunone-ds.xml__ ===Import service definitions=== # svccfg svc:> import /var/svc/manifest/system/zones.xml # svcfg import sunone-ds.xml ===Logs=== Services's logs are store in /var/svc/logs/