On Tue, Jan 09, 2007 at 02:13:51PM -0800, Jim Hall wrote: > What if the requirement was to fetch the file only once when the service is > started or when the user used the svcadm restart command? > > In other words: what if there was no requirement to constantly check the > state of the configuration file? Only during the conditions above?
If the file couldn't be fetched that first time, then what? The file dependency FMRI only checks once and that's been a big dissatisfier. The same would happen with any other similar FMRI. Polling wouldn't necessarily be a good solution either. In any case, what's wrong with fetching the config file in the start method of the service? Well, I can think of one thing that'd be wrong: it'd be nice to have a uniform remote configuration scheme for SMF. But that wouldn't be based on fetching config files via HTTP! So the whole smf_fetch_file() scheme seems: a) not SMF-specific, b) not a general solution to remotely configure services. Of course, since we wouldn't store things like IP filters in SMF a remote file download utility might be part of a generic remote configuration scheme for SMF. But key thing to me is that such a utility could be generic and that if such things as IP filters should be downloadable then so should SMF service property groups. Nico --