From: rettenbe Date: Mon, 28 Jan 2008 10:50:22 +0000 (+0000) Subject: --no-arp comandline option deactivates arp handler X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4ed14706cd95bdd389e035538d8e5d14cb078b4a;p=gosa.git --no-arp comandline option deactivates arp handler git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8618 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index c631b814e..b51bd4ed1 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -331,6 +331,12 @@ sub import_modules { if (not $file =~ /(\S*?).pm$/) { next; } + + if( $no_arp > 0 ) { + if( $file =~ /ArpHandler.pm/ ) { + next; + } + } eval { require $file; }; if ($@) { daemon_log("ERROR: gosa-si-server could not load module $file", 1); diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index 69dfe4e6c..97d3edf16 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -37,7 +37,7 @@ sub lock_exists : locked { my $lock = $self->{db_lock}; my $result=(-f $lock); if($result) { - &main::daemon_log("(".((defined $funcname)?$funcname:"").") Lock (PID ".$$.") $lock gefunden", 6); + &main::daemon_log("(".((defined $funcname)?$funcname:"").") Lock (PID ".$$.") $lock gefunden", 8); usleep 100; } return $result; @@ -46,7 +46,7 @@ sub lock_exists : locked { sub create_lock : locked { my $self=shift; my $funcname=shift; - &main::daemon_log("(".((defined $funcname)?$funcname:"").") Erzeuge Lock (PID ".$$.") ".($self->{db_lock}),6); + &main::daemon_log("(".((defined $funcname)?$funcname:"").") Erzeuge Lock (PID ".$$.") ".($self->{db_lock}),8); my $lock = $self->{db_lock}; while( -f $lock ) { @@ -60,7 +60,7 @@ sub create_lock : locked { sub remove_lock : locked { my $self=shift; my $funcname=shift; - &main::daemon_log("(".((defined $funcname)?$funcname:"").") Entferne Lock (PID ".$$.") ".$self->{db_lock}, 6); + &main::daemon_log("(".((defined $funcname)?$funcname:"").") Entferne Lock (PID ".$$.") ".$self->{db_lock}, 8); close($self->{db_lock_handle}); unlink($self->{db_lock}); }