FS#32354 - [chrony] Should take options from /etc/conf.d/chrony.conf
Attached to Project:
Community Packages
Opened by J. Berger (jmb) - Thursday, 01 November 2012, 10:15 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 01 November 2012, 11:35 GMT
Opened by J. Berger (jmb) - Thursday, 01 November 2012, 10:15 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 01 November 2012, 11:35 GMT
|
Details
Description:
Currently, the initscript for chrony takes its options from the NTPD_ARGS variable in rc.conf. The SystemD unit file does not allow to set options at all. The attached files allow the configuration to be set in /etc/conf.d/chrony and should work with both initcripts and SystemD. They should also be compatible with existing setups. |
This task depends upon
Closed by Dave Reisner (falconindy)
Thursday, 01 November 2012, 11:35 GMT
Reason for closing: Not a bug
Additional comments about closing: We avoid use EnvironmentFile wherever possible.
Thursday, 01 November 2012, 11:35 GMT
Reason for closing: Not a bug
Additional comments about closing: We avoid use EnvironmentFile wherever possible.
SystemD is actually neutral with respects to the conf.d files: it doesn't support them actively but it allows supporting them. If you read this blog post by LP: http://0pointer.de/blog/projects/on-etc-sysinit.html it is clear that he believes such options should go into chrony's configuration files instead of chronyd's command line. But he also says that using EnvironmentFile is an appropriate workaround to set command-line options for those daemons that require it: "If your sysconfig file only knows simple options EnvironmentFile=-/etc/sysconfig/foobar (See systemd.exec(5) for more information about this option.) may be used to import the settings into the environment and use them to put together command lines."
This has the added benefit of keeping compatibility with the legacy rc system while Arch still officially supports it.
Assuming there are no changes to the file in lib, not if you copy it to /etc, no.
See
FS#32336andFS#32275. Even if systemd supports it, Arch doesnt. The consensous seems to be 'systemd all the way'. Initscripts is essentially dead.