Introduction to SMF GUI Demo (5 Minutes)
Description
This demo introduces the Service Management Facility, which replaces the original rc.d scripts.
OpenSolaris Versions Supported
2008.11 or newer.
Points to Hit
- SMF is better than rc.d scripts
- SMF can handle dependencies
- SMF can restart processes in case they fail
- SMF is easy to administer and you can get access to log files fast
- For SMF basics see e.g.: http://en.wikipedia.org/wiki/Service_Management_Facility
Demo Prep
- Install mysql if necessary: pfexec pkg install SUNWmysql5
Gotchas
None known.
Demo
- Start the GUI via System > Administration > Services:

- There are tabs for Service Intances and Services. Note the number of each available.
- Filter the Service Instances list to show only Enabled instances and then Unhealthy instances (hopefully none).
- Use the Search filter to find 'mysql'
- Click the Properties button to view MySQL's Status and Dependencies.
- From the Status tab, disable and then enable the service.
- Use the back arrow to get back to the Service Instances page.
- Note the timestamp (should be recent since we just restarted)
- Note all information is available via the GUI. Open a terminal to find the MySQL process ID: svcs -p mysql
- With the GUI visible, kill the MySQL process: pfexec kill <pid>
- You should notice the Timestamp update as the service is automaticly restarted by SMF.
- Run svcs -p mysql again to see the new process ID
- Run svcs -l mysql to get more detailed information, such as the log file.
- View the logfile: tail <logfile>
Demo Cleanup
None