xref: /OK3568_Linux_fs/buildroot/package/chrony/S49chrony (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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