Only start scheduler when schedule config exists

This commit is contained in:
Oliver Gorwits
2014-08-05 21:33:05 +01:00
parent 8616b17ab8
commit c75c48a558
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,8 @@
* Sort CDP/LLDP data to be more consistent when multiple neighbors on a port * Sort CDP/LLDP data to be more consistent when multiple neighbors on a port
* Fix POD errors in Nbtstat and ResultSet::Device (thanks cpants :) * Fix POD errors in Nbtstat and ResultSet::Device (thanks cpants :)
* UTF-8 encoding for Port Name (description) * UTF-8 encoding for Port Name (description)
* Allow process grouping to work portably againa (daemon config watch) * Allow process grouping to work portably again (daemon config watch)
* Only start scheduler when schedule config exists
2.028013 - 2014-07-31 2.028013 - 2014-07-31

View File

@@ -63,7 +63,7 @@ delete config->{'housekeeping'};
# schedule expire used to be called expiry # schedule expire used to be called expiry
setting('schedule')->{expire} ||= setting('schedule')->{expiry} setting('schedule')->{expire} ||= setting('schedule')->{expiry}
if setting('schedule') and exists setting('schedule')->{expiry}; if setting('schedule') and exists setting('schedule')->{expiry};
delete config->{'schedule'}->{'expiry'}; delete config->{'schedule'}->{'expiry'} if setting('schedule');
# upgrade reports config from hash to list # upgrade reports config from hash to list
if (setting('reports') and ref {} eq ref setting('reports')) { if (setting('reports') and ref {} eq ref setting('reports')) {