aboutsummaryrefslogtreecommitdiffstats
path: root/main/chrony/chronyd.confd
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-10-12 12:28:19 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2018-10-15 09:37:33 +0200
commitf404cbdcff61180ebefab499c532e29a93ef745e (patch)
tree77ef6bbb7cd773b66823737a668de7faf15f49f2 /main/chrony/chronyd.confd
parenta6a5eb50ee4d4411531f618e286f5e2fd6f8e410 (diff)
downloadaports-f404cbdcff61180ebefab499c532e29a93ef745e.tar.gz
aports-f404cbdcff61180ebefab499c532e29a93ef745e.tar.bz2
aports-f404cbdcff61180ebefab499c532e29a93ef745e.tar.xz
main/chrony: add FAST_STARTUP option to OpenRC services
chronyd takes quite some time to perform a double fork to deamonize, thereby blocking OpenRC. This is probably the case because it blocks until time is synchronized. When enabled the FAST_STARTUP option performs the double fork through start-stop-daemon(1) thereby significantly reducing the startup of the chronyd service.
Diffstat (limited to 'main/chrony/chronyd.confd')
-rw-r--r--main/chrony/chronyd.confd5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/chrony/chronyd.confd b/main/chrony/chronyd.confd
index fc43a95c40..1d13bf64ae 100644
--- a/main/chrony/chronyd.confd
+++ b/main/chrony/chronyd.confd
@@ -2,6 +2,11 @@
CFGFILE="/etc/chrony/chrony.conf"
+# chronyd takes some time to perform a second fork, by enabling this
+# option chronyd is deamonized through start-stop-daemon(1) thereby
+# significantly reducing the startup time.
+FAST_STARTUP=no
+
# Configuration dependant options :
# -s - Set system time from RTC if rtcfile directive present
# -r - Reload sample histories if dumponexit directive present