aboutsummaryrefslogtreecommitdiffstats
path: root/extra/chrony/chronyd.confd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-31 14:02:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-31 14:02:54 +0000
commit4fb36e68906b5c78f79942d7b7df78622d009dbb (patch)
treefe8b4e25c6a65513dc0eecd66ae5ad33e7375794 /extra/chrony/chronyd.confd
parent11f2e6fdf01f5bfcc096772aaf6aa396ec066a0c (diff)
downloadaports-4fb36e68906b5c78f79942d7b7df78622d009dbb.tar.gz
aports-4fb36e68906b5c78f79942d7b7df78622d009dbb.tar.bz2
aports-4fb36e68906b5c78f79942d7b7df78622d009dbb.tar.xz
extra/chrony: new aport
NTP client and server programs http://chrony.sunsite.dk/
Diffstat (limited to 'extra/chrony/chronyd.confd')
-rw-r--r--extra/chrony/chronyd.confd18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/chrony/chronyd.confd b/extra/chrony/chronyd.confd
new file mode 100644
index 0000000000..560825c2c8
--- /dev/null
+++ b/extra/chrony/chronyd.confd
@@ -0,0 +1,18 @@
+# /etc/conf.d/chronyd
+
+CFGFILE="/etc/chrony/chrony.conf"
+
+# Configuration dependant options :
+# -s - Set system time from RTC if rtcfile directive present
+# -r - Reload sample histories if dumponexit directive present
+#
+# The combination of "-s -r" allows chronyd to perform long term averaging of
+# the gain or loss rate across system reboots and shutdowns.
+
+ARGS=""
+
+# devfs creates the device for RTC if it's compiled into kernel
+test -c /dev/rtc && {
+ grep -q '^rtcfile' "${CFGFILE}" && ARGS="${ARGS} -s"
+}
+grep -q '^dumponexit$' "${CFGFILE}" && ARGS="${ARGS} -r"