Fixed a bug that non-master servers had stopped log rotation.
This commit is contained in:
parent
7ecfe679ea
commit
b0d8216965
|
@ -287,9 +287,6 @@ sub pandora_server_tasks ($) {
|
|||
|
||||
# Update forced alerts
|
||||
pandora_exec_forced_alerts ($pa_config, $dbh);
|
||||
|
||||
# Rotate Log File
|
||||
pandora_rotate_logfile($pa_config);
|
||||
}
|
||||
|
||||
# TASKS EXECUTED EVERY 30 SECONDS (Mid latency tasks)
|
||||
|
@ -351,9 +348,15 @@ sub pandora_server_tasks ($) {
|
|||
db_do ($dbh, 'UPDATE tevento SET estado=1, ack_utimestamp=? WHERE estado=0 AND utimestamp < ? AND utimestamp > ?', $time_ref, $expiry_limit, $expiry_window);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# COMMON TASKS (master and non-master)
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
# Rotate Log File
|
||||
if (($counter % 30) == 0) {
|
||||
pandora_rotate_logfile($pa_config);
|
||||
}
|
||||
# Pandora self monitoring
|
||||
if (defined($pa_config->{"self_monitoring"})
|
||||
&& $pa_config->{"self_monitoring"} == 1
|
||||
|
|
Loading…
Reference in New Issue