[Buildroot] [PATCH v5] package/ntp: sntp time sync script
Carlos Santos
casantos at datacom.com.br
Mon Feb 4 00:27:48 UTC 2019
> From: "Arnout Vandecappelle" <arnout at mind.be>
> To: "Matthew Weber" <matthew.weber at rockwellcollins.com>, "buildroot" <buildroot at buildroot.org>
> Cc: "Oscar Gomez Fuente" <oscargomezf at gmail.com>, "Carlos Santos" <casantos at datacom.ind.br>
> Sent: Domingo, 3 de fevereiro de 2019 18:00:33
> Subject: Re: [Buildroot] [PATCH v5] package/ntp: sntp time sync script
> Hi Matt,
>
> I've finally applied to master since it really is a useful feature and it
> works. However, I have a few additional remarks. Also one for Carlos, the init
> script dude :-)
>
> On 12/12/2018 04:45, Matt Weber wrote:
> [snip]
>> +#!/bin/sh
>> +
>> +DAEMON="sntp"
>
> Carlos, I'm starting to doubt the usefulness of this DAEMON variable. Other
> variables are prefixed by SNTP_, only this one isn't. In other init scripts you
> started using PROGRAM instead because it isn't actually a daemon.
>
> However, the only reason to make it a variable is to make it easier to copy and
> adapt an existing init script. But really, doing a search/replace of that string
> is not so much work. And you anyway need to review the entire file, e.g.
> /usr/bin/$DAEMON is used which may not be correct.
>
> So I'd propose to replace DAEMON with a direct reference to the program. What
> do you think?
DAEMON can be useful sometime in the future if we homogenize the scripts
so well that we can use a template that is sourced after setting a small
of variables (DAEMON, DAEMON_ARGS, PIDFILE, and so on). Perhaps we should
use an EXECFILE variable instead of /usr/bin/$DAEMON.
--
Carlos Santos (Casantos) - DATACOM, P&D
More information about the buildroot
mailing list