mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
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:
parent
82d882eef0
commit
9977053659
@ -2,12 +2,14 @@
|
|||||||
#
|
#
|
||||||
# Start chrony
|
# Start chrony
|
||||||
|
|
||||||
|
[ -r /etc/default/chrony ] && . /etc/default/chrony
|
||||||
|
|
||||||
[ -f /etc/chrony.conf ] || exit 0
|
[ -f /etc/chrony.conf ] || exit 0
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
printf "Starting chrony: "
|
printf "Starting chrony: "
|
||||||
chronyd && echo "OK" || echo "FAIL"
|
chronyd $CHRONY_ARGS && echo "OK" || echo "FAIL"
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
printf "Stopping chrony: "
|
printf "Stopping chrony: "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user