On Fri, Nov 29, 2013 at 09:49:03AM +0100, Lars Wendler wrote:

> I think there's some confusion on what the -d option actually does, so
> let me cite the relevant parts from "man 8 ntpd":
[...]
> Now let's discuss if this can be considered as "debug mode" or not.

Let me cite the relevant code ;) :

ntpd.c:
        while ((ch = getopt(argc, argv, "df:nsSv")) != -1) {
                switch (ch) {
                case 'd':
                        lconf.debug = 1;

The person that wrote the code clearly intended -d to enable debugging. We
can discuss exactly what enabling debugging does, but I really don't think
there's any question as to whether or not -d should be considered debug
mode...

> If logging once was done via syslog this should not be changed. 
> So rather than making this available via USE flag being disabled
> by default I'd rather prefer to have the USE flag being enabled by
> default.                                                                      
>   
Also, running in debug mode precludes logging to syslog, as in debug mode
it just spews to stderr. Cause, well, it's for debugging, not routine
operation.

If openrc has issues managing services that don't drop pid files, maybe
that should be looked into, or maybe openntpd could be patched to drop
a pid file. But running in debug mode to prevent daemonizing, and then
manually backgrounding it, is simply kludgy and distasteful :(...


Reply via email to