From a06400b906893ccace83e11cf5bb76e431557b24 Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Thu, 3 May 2012 19:30:17 -0300 Subject: postfix - reduce boot process and include startup check --- config/dansguardian/dansguardian.inc | 8 +++++++- config/dansguardian/dansguardian_groups.xml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'config/dansguardian') diff --git a/config/dansguardian/dansguardian.inc b/config/dansguardian/dansguardian.inc index 26e213a2..0712324e 100755 --- a/config/dansguardian/dansguardian.inc +++ b/config/dansguardian/dansguardian.inc @@ -32,6 +32,9 @@ require_once("util.inc"); require("globals.inc"); #require("guiconfig.inc"); +$uname=posix_uname(); +if ($uname['machine']=='amd64') + ini_set('memory_limit', '250M'); function dg_text_area_decode($text){ return preg_replace('/\r\n/', "\n",base64_decode($text)); @@ -92,6 +95,9 @@ function sync_package_dansguardian() { $boot_process="on"; } + if (is_process_running('dansguardian') && isset($boot_process)) + return; + #assign xml arrays if (!is_array($config['installedpackages']['dansguardian'])) $config['installedpackages']['dansguardian']['config'][0]=array('interface'=>'lo0', @@ -687,7 +693,7 @@ function sync_package_dansguardian() { 'group_options' => "scancleancache,infectionbypasserrorsonly", 'reportinglevel'=>'3', 'mode'=> "1", - 'report_level'=>"general"); + 'report_level'=>"global"); $groups=array("scancleancache","hexdecodecontent","blockdownloads","enablepics","deepurlanalysis","infectionbypasserrorsonly","disablecontentscan","sslcertcheck","sslmitm"); #loop on array diff --git a/config/dansguardian/dansguardian_groups.xml b/config/dansguardian/dansguardian_groups.xml index 063d55fa..96429567 100755 --- a/config/dansguardian/dansguardian_groups.xml +++ b/config/dansguardian/dansguardian_groups.xml @@ -250,7 +250,7 @@ If defined, this overrides the global setting in dansguardian.conf for members of this filter group.]]> select - + -- cgit v1.2.3