[hipl-dev] Re: [Bug 693834] Re: maintain configuration files as separate files

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: Stefan Götz <693834@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 05 Jan 2011 12:59:01 +0100

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

Other related posts: