Skip to content

Commit

Permalink
Add ntsCheck.sh script
Browse files Browse the repository at this point in the history
Signed-off-by: Jauder Ho <jauderho@users.noreply.github.com>
  • Loading branch information
jauderho committed Sep 30, 2024
1 parent e80b3d1 commit 81297dc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/ntsCheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Check if argument is passed
if [ -z "$1" ]; then
echo "Usage: $0 <NTS_SERVER>"
exit 1
fi

# Assign the argument to a variable
NTS_SERVER=$1

# Run the chronyd command with the argument
chronyd -Q -t 3 "server $NTS_SERVER iburst nts maxsamples 1"

0 comments on commit 81297dc

Please sign in to comment.