chrony: S49chrony: support a defaults file

For specifying custom options to chrony.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard 2018-05-28 15:22:57 +02:00
parent 82d882eef0
commit 9977053659

View File

@ -2,12 +2,14 @@
#
# Start chrony
[ -r /etc/default/chrony ] && . /etc/default/chrony
[ -f /etc/chrony.conf ] || exit 0
case "$1" in
start)
printf "Starting chrony: "
chronyd && echo "OK" || echo "FAIL"
chronyd $CHRONY_ARGS && echo "OK" || echo "FAIL"
;;
stop)
printf "Stopping chrony: "