aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk-schedule
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-04-03 21:30:43 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-04-03 21:30:43 +0200
commitb35c0b8a6f6373201cc9e252a8647935ad54ee19 (patch)
tree3a0f435d99f4f6772871ae00077a5554e8170839 /daily-psk-schedule
parent27b2fffaaf2529759795b031acea9c8e6980a4ac (diff)
always write warnings and errors to log
Diffstat (limited to 'daily-psk-schedule')
-rw-r--r--daily-psk-schedule6
1 files changed, 4 insertions, 2 deletions
diff --git a/daily-psk-schedule b/daily-psk-schedule
index 2a01bae..bad21a5 100644
--- a/daily-psk-schedule
+++ b/daily-psk-schedule
@@ -10,11 +10,13 @@
/ system scheduler set interval=15s $Scheduler;
} else={
:if ([ / tool netwatch get [ find where comment=[ / tool e-mail get address ] ] status ] != "up") do={
- :error "Mail server is not up.";
+ :log warning "Mail server is not up.";
+ :error "Warning: See log for details.";
}
:if ([ / system ntp client get status ] != "synchronized") do={
- :error "Time is not yet synchronized from ntp.";
+ :log warning "Time is not yet synchronized from ntp.";
+ :error "Warning: See log for details.";
}
/ system script run [ find where name~"daily-psk\\.(capsman|local)" ];