1#!/bin/sh 2# 3# Start chrony 4 5[ -r /etc/default/chrony ] && . /etc/default/chrony 6 7case "$1" in 8 start) 9 printf "Starting chrony: " 10 chronyd $CHRONY_ARGS && echo "OK" || echo "FAIL" 11 ;; 12 stop) 13 printf "Stopping chrony: " 14 killall chronyd && echo "OK" || echo "FAIL" 15 ;; 16 restart|reload) 17 "$0" stop 18 sleep 1 19 "$0" start 20 ;; 21 *) 22 echo "Usage: $0 {start|stop|restart}" 23 exit 1 24esac 25 26exit $? 27