* Derek Crudgington <dacrud at gmail.com> [2006-10-04 08:34]:
> If anyone is interested, I have written a Perl daemon that runs in the
> background and monitors SMF services to e-mail you when something
> happens.  Check http://hell.jedicoder.net/?p=83 for more info.
 
  Cool.  I had a brief look; you can simplify

  $grep = `svcs -l $smf | grep logfile`;
  
  to

  $grep = `svcprop -p restarter/logfile $smf`;

  (and probably change the variable name...).  We should be able to get
  a proper API in place for transitions, so you needn't be forced to log
  scrape to see stops and starts.

  - Stephen

-- 
Stephen Hahn, PhD  Solaris Kernel Development, Sun Microsystems
stephen.hahn at sun.com  http://blogs.sun.com/sch/

Reply via email to