On Fri, May 09, 2008 at 07:40:33PM +0100, John Levon wrote: > On Fri, May 09, 2008 at 10:18:51AM -0700, Danek Duvall wrote: > > > > For example, it looks like pkg needs a syseventadm action. > > > > So the discussion in bug 509 indicates that this isn't actually needed > > for boot, but could be done via an SMF service that runs at boot. Is > > that not the case? > > It was but I was forgetting about the remove case. How do I remove the > sysevent without scripts or an action?
An action delivering a sysevent would be tagged with a service FMRI which the packaging system would ping both when the action was installed and when it was removed. On installation, the service would recognize the new event and merge it into its private database. On removal, the service would recognize that its private database was out of sync with the events delivered, and recompute. You wouldn't deliver this service in your package, but in whatever package delivers the sysevent functionality itself. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
