aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-03-05 09:42:28 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-03-05 09:42:28 +0100
commit71ae8cb75f7ffc4dd3a9672582157b60da12fd34 (patch)
treef5c7804434c8ac213160ba14c6d5aad13c08e68e
parent27e263500717c6e1428a7a113032005aba203060 (diff)
rotate-ntp: use $LogPrintExit
-rw-r--r--rotate-ntp6
1 files changed, 4 insertions, 2 deletions
diff --git a/rotate-ntp b/rotate-ntp
index 465a46c..534f400 100644
--- a/rotate-ntp
+++ b/rotate-ntp
@@ -6,12 +6,14 @@
:global NtpPool;
+:global LogPrintExit;
+
:local Ntp1 [ :resolve ("0." . $NtpPool) ];
:local Ntp2 [ :resolve ("1." . $NtpPool) ];
:if ([ / system ntp client get enabled ] != true) do={
- :log warning "NTP client is not enabled!";
+ $LogPrintExit warning "NTP client is not enabled!" true;
}
-:log info ("Updating NTP servers to " . $Ntp1 . " and " . $Ntp2);
+$LogPrintExit info ("Updating NTP servers to " . $Ntp1 . " and " . $Ntp2) false;
/ system ntp client set primary-ntp=$Ntp1 secondary-ntp=$Ntp2;