From 81297dcac99a99b2d5ee0a283f21aa5a97aab4d7 Mon Sep 17 00:00:00 2001 From: Jauder Ho Date: Mon, 30 Sep 2024 20:34:42 +0000 Subject: [PATCH] Add ntsCheck.sh script Signed-off-by: Jauder Ho --- scripts/ntsCheck.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/ntsCheck.sh diff --git a/scripts/ntsCheck.sh b/scripts/ntsCheck.sh new file mode 100755 index 0000000..47a9a09 --- /dev/null +++ b/scripts/ntsCheck.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Check if argument is passed +if [ -z "$1" ]; then + echo "Usage: $0 " + 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"