Ceri Davies writes: > On Mon, Jun 02, 2008 at 12:40:20PM -0400, James Carlson wrote: > > Unfortunately, you also have to talk *to* the UPS to get there. It's > > not all that simple to do as a kernel service. > > Can't svc.startd do this? There's already magic in the do_uadmin() > function that calls /usr/sbin/killall, so it should be possible to hook > in some magic there.
Sure it can do that; the question is how _best_ to hook it in. UPS support isn't a native part of the operating system itself, so it's likely that this needs to have some sort of "plug-in" type of design. One way I've been suggesting to do it is to have a (presumably unique) "run me last on shutdown" service flag. -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677