The option rtcfile in the default config conflicts with runit's stage 3. Chronyd in RTC mode takes control of /dev/rtc to measure RTC drift. Stage 3 calls hwclock -w, which messes up chrony's drift calculation. Furthermore the current chronyd runit service needs the -s option to effectively use the RTC feature. See for more info: https://chrony.tuxfamily.org/faq.html#_i_want_to_use_code_chronyd_code_s_rtc_support_must_i_disable_code_hwclock_code Switch rtcfile to the rtcsync option, to be consistent with stage 3. Example config file 1 sets the right options that work out of the box. So use that example file instead of editing the annotated one. Example config file 3 will instead be installed to /usr/share/examples.
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'chrony'
|
|
# When Updating: Please confirm the upstream config still refers to make_dirs
|
|
pkgname=chrony
|
|
version=3.5
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--without-nss --enable-scfilter
|
|
--with-sendmail=/usr/bin/sendmail"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libcap-devel libedit-devel libseccomp-devel libtomcrypt-devel"
|
|
conf_files="/etc/chrony.conf"
|
|
short_desc="Versatile implementation of the Network Time Protocol (NTP)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://chrony.tuxfamily.org/"
|
|
distfiles="https://download.tuxfamily.org/chrony/${pkgname}-${version}.tar.gz"
|
|
checksum=4e02795b1260a4ec51e6ace84149036305cc9fc340e65edb9f8452aa611339b5
|
|
system_accounts="chrony"
|
|
chrony_homedir="/var/lib/chrony"
|
|
|
|
make_dirs="
|
|
/var/log/chrony 0755 chrony chrony
|
|
/var/lib/chrony 0755 chrony chrony"
|
|
|
|
provides="ntp-daemon-0_1"
|
|
alternatives="
|
|
ntpd:ntpd:/usr/bin/chronyd
|
|
ntpd:ntpd.8:/usr/share/man/man8/chronyd.8
|
|
ntpd:ntpd:/etc/sv/chronyd"
|
|
|
|
post_install() {
|
|
vconf examples/chrony.conf.example1 chrony.conf
|
|
vsconf examples/chrony.conf.example2
|
|
vsconf examples/chrony.conf.example3
|
|
vsv chronyd
|
|
}
|