From 5443827ad0ce9a19c810cf9df3ae483513a8841c Mon Sep 17 00:00:00 2001 From: rettenbe Date: Tue, 11 Dec 2007 14:41:30 +0000 Subject: [PATCH] arp handling can be disabled by commandline git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8081 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/daemon/gosa-sd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/daemon/gosa-sd b/contrib/daemon/gosa-sd index 989a82385..8ae06b0d0 100755 --- a/contrib/daemon/gosa-sd +++ b/contrib/daemon/gosa-sd @@ -50,7 +50,7 @@ my ($known_daemons, $shmda, $known_clients, $shmcl, $known_modules); my ($max_clients); my ($pid_file, $procid, $pid, $log_file); my (%free_child, %busy_child, $child_max, $child_min, %child_alive_time, $child_timeout); -my ($arp_activ, $arp_fifo, $arp_fifo_path); +my ($arp_activ, $arp_fifo, $arp_fifo_path, $no_arp); # variables declared in config file are always set to 'our' our (%cfg_defaults, $log_file, $pid_file, @@ -77,6 +77,8 @@ $ping_timeout = 5; $no_bus = 0; +$no_arp = 0; + # holds all other gosa-sd as well as the gosa-sd-bus our $known_daemons = {}; our $shmda = tie($known_daemons, 'IPC::Shareable', undef, {create => 1, @@ -1766,6 +1768,7 @@ GetOptions("h|help" => \&usage, "f|foreground" => \$foreground, "v|verbose+" => \$verbose, "no-bus+" => \$no_bus, + "no-arp+" => \$no_arp, ); # read and set config parameters @@ -1843,6 +1846,9 @@ if($bus_activ eq "on") { daemon_log(" ", 1); # start arp fifo +if ($no_arp > 0) { + $arp_activ = "off"; +} my $my_fifo; if($arp_activ eq "on") { $my_fifo = &open_fifo($arp_fifo_path); -- 2.30.2