SmartOS' set-notify for SMF doesn't work. This script runs 'svcs' for you periodically and emails you if your scripts are unhappy.