aboutsummaryrefslogtreecommitdiff
path: root/network/chrony/rc.chrony
diff options
context:
space:
mode:
authorRichard Ellis <rellis@dp100.com>2019-12-15 05:24:05 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-15 05:24:05 +0700
commite6077d43fb0decd570ad2d86777af9e269e19eeb (patch)
tree4e72fba4e23833cfdc042db0523f62149dc3c9c3 /network/chrony/rc.chrony
parented2efacdce4a9db08da3c9e2f57b242f1bafed83 (diff)
network/chrony: Updated for version 3.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/chrony/rc.chrony')
-rw-r--r--network/chrony/rc.chrony9
1 files changed, 7 insertions, 2 deletions
diff --git a/network/chrony/rc.chrony b/network/chrony/rc.chrony
index fc74d34ae251..fdff2facbdab 100644
--- a/network/chrony/rc.chrony
+++ b/network/chrony/rc.chrony
@@ -1,13 +1,18 @@
#!/bin/sh
+NTP_USER=@NTP_USER@
+
+# place local customizations in /etc/default/chrony
+[ -r /etc/default/chrony ] && . /etc/default/chrony
+
################################################################################
chronyd_start() {
################################################################################
if [ -n "$(pidof chronyd)" ]; then
echo "chronyd seems to be already running."
else
- echo "Starting chronyd: /usr/sbin/chronyd -u @NTP_USER@"
- /usr/sbin/chronyd -u @NTP_USER@
+ echo "Starting chronyd: /usr/sbin/chronyd -u $NTP_USER $CHRONYD_ARGS"
+ /usr/sbin/chronyd -u $NTP_USER $CHRONYD_ARGS
fi
}