Jordan Brown wrote: > > Bart Smaalders wrote: >> Jordan Brown wrote: >>> Bart Smaalders wrote: >>>> Ed McKnight wrote: >>>>> My reading of threads on this topic suggest that if my package pings >>>>> an SMF script (with refresh, for example) on uninstall that the >>>>> invocation happens before the bits delivered by the package are >>>>> actually removed from the filesystem. True? >>>> yes >>> How does this work in a non-running-root case? >>> >>>>> If true, is it asynch, i.e. the SMF invocation is launched and runs >>>>> while uninstall continues, or synch, i.e. the SMF action is launched >>>>> and completes before uninstallation continues? >>>>> >>>> if not, it should be ;-) >>> Err... it should be synchronous, or it should be asynchronous? >> synchronous; if shutdown takes a bit we don't want to be uninstalling >> binaries we're still executing. > > So how does this work for non-running roots, when the goal is to run a > service that does some sort of cleanup (e.g. removing a cron job)? > _______________________________________________ > pkg-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
It doesn't. If we want this sort of behavior, the crontab file should be composited together at boot from fragments delivered by packages, and then the crontab rebuilt when new (or fewer) components are found. - Bart -- Bart Smaalders Solaris Kernel Performance [EMAIL PROTECTED] http://blogs.sun.com/barts "You will contribute more with mercurial than with thunderbird." _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
