From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Fri, 3 Nov 2017 17:31:34 +0100 Subject: [Buildroot] [PATCH 1/2] dhcpcd: add SysV start-up script In-Reply-To: <20171103171748.0111e6b0@windsurf> References: <20171031223659.6831-1-code@mmayer.net> <20171031223659.6831-2-code@mmayer.net> <20171102230602.3c61e8d2@windsurf> <20171102221847.GA23314@scaer> <20171102232345.5a434af8@windsurf> <20171103161057.GB3387@scaer> <20171103171748.0111e6b0@windsurf> Message-ID: <20171103163134.GC3387@scaer> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Thomas, All, On 2017-11-03 17:17 +0100, Thomas Petazzoni spake thusly: > On Fri, 3 Nov 2017 17:10:57 +0100, Yann E. MORIN wrote: > > > > So you want explicitly handling for the "missing configuration file" > > > situation in the init script? > > > > > > I wanted to avoid explicit handling, and just let the daemon whine (or > > > not) if its config file is missing. > > > > The idea is that the script contains sensible defaults, but scans an > > optional file (e.g. /etc/default.d/my-daemon.conf) that a user can > > provide to override the defaults. > > > > IIRC, that's what was discussed and concluded a while ago (2 years?). > > > > I would like that users can change the behaviour of a service without > > having to sed/replace the init script. > > I think we're not talking about the same thing. I'm not talking > about /etc/default/foobar containing additional shell variables to > tweak the init script behavior. > > I'm talking about the configuration file read by the daemon itself > (/etc/lighttpd/lighttpd.conf for example). Ah, I see, yes. In that case, the .mk should have installed a default one, so we should not check. So yes, the rule is that whatever should be installed by the .mk should not be checked for by the initscript. /me hands a lighted match to Thomas... Kill it with fire! Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'