diff options
Diffstat (limited to 'daily-psk-schedule')
-rw-r--r-- | daily-psk-schedule | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daily-psk-schedule b/daily-psk-schedule index c9be0bf..6c542a2 100644 --- a/daily-psk-schedule +++ b/daily-psk-schedule @@ -4,12 +4,14 @@ # # schedule daily-psk on startup +:global MailServerIsUp; + :local Scheduler [ / system scheduler find where name="daily-psk-schedule" ]; :if ([ / system scheduler get $Scheduler interval ] = 0s) do={ / system scheduler set interval=15s $Scheduler; } else={ - :if ([ / tool netwatch get [ find where comment=[ / tool e-mail get address ] ] status ] != "up") do={ + :if ($MailServerIsUp = false) do={ :log warning "Mail server is not up."; :error "Warning: See log for details."; } |