From: ludo@gnu.org (Ludovic Courtès)
To: Efraim Flashner <efraim@flashner.co.il>
Cc: 29483@debbugs.gnu.org
Subject: [bug#29483] [PATCH] services: Add openntpd service.
Date: Thu, 11 Jan 2018 22:44:03 +0100 [thread overview]
Message-ID: <87tvvsm5p8.fsf@gnu.org> (raw)
In-Reply-To: <87lgimiwc2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 01 Dec 2017 11:19:57 +0100")
Ping!
Let’s not let bitdust settle on this patch!
Ludo’.
ludo@gnu.org (Ludovic Courtès) skribis:
> Hello!
>
> Efraim Flashner <efraim@flashner.co.il> skribis:
>
>> * gnu/packages/ntp.scm (openntpd)[arguments]: Add 'configure-flags to
>> set openntpd daemon's user and protected path. Add a custom phase to not
>> try to create said directory at install time.
>> * gnu/services/networking.scm (<openntpd-configuration>): New record type.
>> (openntpd-shepherd-service, openntpd-service-activation): New procedures.
>> (openntpd-service-type): New variable.
>> * doc/guix.texi (Networking Services): Add openntpd documentation.
>
> Nice!
>
>> +@cindex Openntpd
>
> “OpenNTPD” maybe? Or all lower case?
>
>> +@deffn {Scheme Procedure} openntpd-service [#:openntpd @var{openntpd}] @
>> + [#:servers @var{%ntp-servers}] @
>> + [#:allow-large-adjustment? #f]
>> +Return a service that runs the daemon from @var{openntpd}, the
>> +@uref{http://www.openntpd.org, OpenNTPD package}. The daemon will
>> +keep the system clock synchronized with that of @var{servers}.
>> +@var{allow-large-adjustment?} determines whether @command{ntpd} is allowed to
>> +make an initial adjustment of more than 180 seconds."
>> +@end deffn
>
> The convention now is to expose and document the configuration record
> type and the service type, and to not provide a “foo-service” procedure.
>
> Could you adjust accordingly?
>
>> +(define-record-type* <openntpd-configuration>
>> + openntpd-configuration make-openntpd-configuration
>> + openntpd-configuration?
>> + (openntpd openntpd-configuration-openntpd
>> + (default openntpd))
>> + (servers openntpd-configuration-servers)
>
> Probably with: (default %ntp-servers).
>
>> +# Only listen on localhost
>> +listen on 127.0.0.1
>> +listen on ::1
>> +
>> +# Query the 'Date' from trusted HTTPS servers via TLS.
>> +constraint from www.gnu.org\n"))
>
> It would be nice to make that constraint server configurable too (not a
> blocker though).
>
>> + (list (shepherd-service
>> + (provision '(openntpd))
>
> Perhaps we should make that ‘ntpd’ so that it conflicts with the other
> ntpd.
>
>> +(define openntpd-service-type
>> + (service-type (name 'openntpd)
>> + (extensions
>> + (list (service-extension shepherd-root-service-type
>> + openntpd-shepherd-service)
>> + (service-extension account-service-type
>> + (const %ntp-accounts))
>
> Are you sure that it uses those accounts?
>
>> + "Run the @command{ntpd}, the Network Time Protocol (NTP)
>> +daemon of the @uref{http://www.ntp.org, Network Time Foundation}, as
> ^---- remove -------------------------------------------^
>> +implemented by OpenNTPD. The daemon will keep the system clock synchronized
>> +with that of the given servers.")))
>> +
>> +(define* (openntpd-service #:key (openntpd openntpd)
>> + (servers %ntp-servers)
>> + allow-large-adjustment?)
>
> Remove.
>
> Could you send an updated patch?
>
> Thank you!
>
> Ludo’.
next prev parent reply other threads:[~2018-01-11 21:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-28 9:04 [bug#29483] [PATCH] services: Add openntpd service Efraim Flashner
2017-12-01 10:19 ` Ludovic Courtès
2018-01-11 21:44 ` Ludovic Courtès [this message]
2018-01-19 23:52 ` Ludovic Courtès
[not found] ` <20180129192423.GC17751@macbook41>
[not found] ` <871shzbgoz.fsf@gnu.org>
2018-03-02 14:02 ` Efraim Flashner
2018-03-02 16:46 ` Ludovic Courtès
2018-03-04 18:02 ` Efraim Flashner
2018-03-04 22:21 ` Ludovic Courtès
2017-12-03 19:24 ` Marius Bakke
2018-03-05 9:32 ` bug#29483: " Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tvvsm5p8.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=29483@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.