Venky wrote:
A very basic question -- is there a way to run a service just once
when a package is installed?
From what I understand of actuators, we deliver a service and
trigger it with restart_fmri or one of the other actuators. But
this service will stick around and run once on every boot, even
though all I really need is to have it run just once per install.
Did I get this wrong, or am I missing something obvious?
What happens on upgrade? Did you want to run the service again?
If not, what is this service doing?
The service should be transient; it should (cheaply) check that
there is nothing to do and exit. For daemons and other persistent
programs, they can most easily do this in their existing start
methods.
Of course, the best design to avoid the need for such mechanisms
entirely; designing the software to perform self-assembly on
startup is usually the cleanest and easiest solution.
- 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