mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-29 13:38:00 +00:00
Merge pull request #306 from justincormack/chronyconfig
Fix up chronyd support for editions
This commit is contained in:
commit
663b6848a0
@ -46,7 +46,11 @@ setxtrarg() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -d /sys/bus/vmbus ] && exit 0
|
[ "$(mobyplatform)" = "windows" ] && exit 0
|
||||||
|
|
||||||
|
[ "$(mobyplatform)" = "aws" ] && \
|
||||||
|
sed -i -e "s/^server [^ ]\+/server 0.amazon.pool.ntp.org/g" /etc/chrony/chrony.conf
|
||||||
|
|
||||||
checkconfig || return $?
|
checkconfig || return $?
|
||||||
setxtrarg
|
setxtrarg
|
||||||
|
|
||||||
@ -61,7 +65,8 @@ start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
[ -d /sys/bus/vmbus ] && exit 0
|
[ "$(mobyplatform)" = "windows" ] && exit 0
|
||||||
|
|
||||||
checkconfig || return $?
|
checkconfig || return $?
|
||||||
|
|
||||||
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid
|
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user