* Chris <chris at ochsnet.com> [2007-06-28 12:50]: > Also, is it possible to have smf run processes that stay in the > foreground?
The startd/duration property allows you to control this behaviour: "contract" means when the process contract begun with the start method is empty, "child" means when the process used by the start method exits. > Wouldn't this be the most reliable way for smf to know if > a process is running or not? Well, the most reliable way would be to have a monitoring framework of some kind, that tested for liveness, rather than just existence. That contract duration is the default is based on our assessment of how much software daemonizes. If I were targetting an OpenSolaris OS with smf(5) as a daemon author, I would seriously consider not daemonizing. - Stephen -- sch at sun.com http://blogs.sun.com/sch/