diff options
author | Ermal <eri@pfsense.org> | 2010-10-16 15:27:30 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-10-16 15:27:30 +0000 |
commit | 65167fcc050ab0afbc0208c0361a112768d8c48e (patch) | |
tree | c798e4dfadfc664d68897718def152f0b90a1610 /etc | |
parent | f5ea58da028d0a484d4b76bedd821f48fc9fa90f (diff) | |
download | pfsense-65167fcc050ab0afbc0208c0361a112768d8c48e.zip pfsense-65167fcc050ab0afbc0208c0361a112768d8c48e.tar.gz |
Do not run anymore the cron job for monitoring check_reload_status since it has a monitoring process that does this through kqueue.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index e2c52c7..0279809 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -486,17 +486,6 @@ function upgrade_025_to_026() { $cron_item['command'] = "/usr/bin/nice -n20 /usr/local/sbin/expiretable -t 1800 snort2c"; $config['cron']['item'][] = $cron_item; - - $cron_item = array(); - $cron_item['minute'] = "*/5"; - $cron_item['hour'] = "*"; - $cron_item['mday'] = "*"; - $cron_item['month'] = "*"; - $cron_item['wday'] = "*"; - $cron_item['who'] = "root"; - $cron_item['command'] = "/usr/local/bin/checkreload.sh"; - - $config['cron']['item'][] = $cron_item; } @@ -507,22 +496,6 @@ function upgrade_026_to_027() { function upgrade_027_to_028() { global $config; - $founditem = false; - foreach($config['cron']['item'] as $cronitem) { - if($cronitem['command'] == "/usr/local/bin/checkreload.sh") - $founditem = true; - } - if($founditem == false) { - $cron_item = array(); - $cron_item['minute'] = "*/5"; - $cron_item['hour'] = "*"; - $cron_item['mday'] = "*"; - $cron_item['month'] = "*"; - $cron_item['wday'] = "*"; - $cron_item['who'] = "root"; - $cron_item['command'] = "/usr/local/bin/checkreload.sh"; - $config['cron']['item'][] = $cron_item; - } } @@ -2227,4 +2200,16 @@ function upgrade_069_to_070() { } } +function upgrade_070_to_071() { + global $config; + + if (is_array($config['cron']['item'])) { + foreach($config['cron']['item'] as $idx => $cronitem) { + if($cronitem['command'] == "/usr/local/bin/checkreload.sh") { + unset($config['cron']['item'][$idx]); + break; + } + } + } +} ?> |