Comment 5 for bug 693834

Revision history for this message
Diego Biurrun (diego-biurrun) wrote : Re: [Bug 693834] Re: maintain configuration files as separate files

On Wed, Jan 05, 2011 at 11:41:26AM +0000, Stefan Götz wrote:
> I think the usual approach of most other daemons is
>
> 1) search for the config file at the configured and compiled-in location
> (usually /etc or /usr/local/etc)
>
> 2) search for the config file in a user-specific location (not
> applicable with HIPL) or the working directory
>
> It depends on the daemon whether they skip step 2) if step 1) succeeds
> or whether they read file 2) in addition to file 1). I guess the
> skipping approach makes the most sense for HIPL?

Something along these lines is the only sensible solution. A daemon
should read a config file from a fixed location and accept a -f (or
similar) parameter on the command line to read the config file from
some other place.

Diego