chrony: S49chrony: support a defaults file
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 28 May 2018 13:22:57 +0000 (15:22 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 28 May 2018 18:20:46 +0000 (20:20 +0200)
For specifying custom options to chrony.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/chrony/S49chrony

index 6215acc4aa217ddbc0099ad30d8e97eae5536ce4..5abb3b25823ff8ffd10b7649557ff17bcb4f827b 100755 (executable)
@@ -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: "