summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-31 23:34:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-31 23:34:37 +0000
commit5a81a54eb6721932debcde43ba72bdce67faa706 (patch)
treecac4c3c7e91027cbc2b2c818c715b7adeea84038 /etc
parent7ef750ea5532696c36953154826d8610953d52c5 (diff)
downloadpfsense-5a81a54eb6721932debcde43ba72bdce67faa706.zip
pfsense-5a81a54eb6721932debcde43ba72bdce67faa706.tar.gz
require_once("services.inc") to prevent: Fatal error: Call to undefined function: configure_cron() in /etc/inc/config.inc on line 909
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc36
1 files changed, 19 insertions, 17 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index e812d51..d743874 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -54,6 +54,8 @@ if($g['booting']) echo ".";
require_once("pfsense-utils.inc");
if($g['booting']) echo ".";
require_once("xmlparse.inc");
+if($g['booting']) echo ".";
+require_once("services.inc");
/* read platform */
if($g['booting']) echo ".";
@@ -814,7 +816,7 @@ function convert_config() {
unset($config['system']['use_rrd_gateway']);
$config['version'] = "2.5";
}
-
+
/* Convert 2.5 -> 2.6 */
if ($config['version'] <= 2.5) {
$cron_item = array();
@@ -825,9 +827,9 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/bin/nice -n20 newsyslog";
-
+
$config['cron']['item'][] = $cron_item;
-
+
$cron_item = array();
$cron_item['minute'] = "1,31";
$cron_item['hour'] = "0-5";
@@ -836,9 +838,9 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/bin/nice -n20 adjkerntz -a";
-
+
$config['cron']['item'][] = $cron_item;
-
+
$cron_item = array();
$cron_item['minute'] = "1";
$cron_item['hour'] = "*";
@@ -847,9 +849,9 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/bin/nice -n20 /etc/rc.update_bogons.sh";
-
+
$config['cron']['item'][] = $cron_item;
-
+
$cron_item = array();
$cron_item['minute'] = "*/60";
$cron_item['hour'] = "*";
@@ -858,9 +860,9 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 sshlockout";
-
+
$config['cron']['item'][] = $cron_item;
-
+
$cron_item = array();
$cron_item['minute'] = "1";
$cron_item['hour'] = "1";
@@ -869,9 +871,9 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/bin/nice -n20 /etc/rc.dyndns.update";
-
+
$config['cron']['item'][] = $cron_item;
-
+
$cron_item = array();
$cron_item['minute'] = "*/60";
$cron_item['hour'] = "*";
@@ -880,9 +882,9 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 virusprot";
-
+
$config['cron']['item'][] = $cron_item;
-
+
$cron_item = array();
$cron_item['minute'] = "*/60";
$cron_item['hour'] = "*";
@@ -891,9 +893,9 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$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'] = "*";
@@ -902,12 +904,12 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/local/bin/checkreload.sh";
-
+
$config['cron']['item'][] = $cron_item;
/* write crontab entries to file */
configure_cron();
-
+
$config['version'] = "2.6";
}
OpenPOWER on IntegriCloud