Laszlo (Laca) Peter wrote: > I suggest you read this thread: > http://mail.opensolaris.org/pipermail/pkg-discuss/2008-April/002625.html
Yes, pretty much exactly my concern, thanks. OK, so assuming that we get a mechanism to trigger an SMF service that will do whatever needs doing, a few thoughts: - Presumably this service could be one that had just been installed and its manifest imported through some canned add-service action. - It seems like it would be useful to have a service that executes all of the scripts dropped into a particular directory, exactly once, at the next convenient time. Most postinstall scripts could be turned into scripts to be executed through such a mechanism. - It is mildly bothersome that the script execution is separated from the installation. If the installation proper fails, the failure is reported as a failure of the installation. If, on the other hand, one of these deferred scripts (or whatever deferred actions) fails, the failure is probably reported off in some obscure SMF log, and almost certainly not reported back through the installation UI. The asynchronous nature of the execution may also be a problem - what happens if the user immediately removes a package just added, while its deferred actions are running? - Preinstall and preremove scripts are still problematic. (Presumably postremove scripts could be handled similarly to postinstall scripts, by triggering a service to run after removal.) Note that preinstall scripts are desirable if you want to install files as a newly created user. _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
