Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Sat6: Time is synchronised #41

Open
jhutar opened this issue Nov 3, 2016 · 0 comments
Open

Sat6: Time is synchronised #41

jhutar opened this issue Nov 3, 2016 · 0 comments

Comments

@jhutar
Copy link
Collaborator

jhutar commented Nov 3, 2016

https://github.com/boogiespook/sat6_healthCheck/blob/master/sat6_healthCheck.sh#L328-L337

function checkChronySynchronised {

    if [ $(chronyc sources | grep \* | wc -l) -eq 0 ]
    then
      printError "chronyd has no synchronised time source"
      remedialAction "wait for chrony to synchronise and check with 'chronyc sources list'"
    else
      printOK "chronyd is synchronised with a time server"
    fi
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant