summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 406c8f1)
raw | patch | inline | side by side (parent: 406c8f1)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 12:51:07 +0000 (12:51 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 12:51:07 +0000 (12:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9708 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-server | patch | blob | history |
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 4c540d879ce566afbb23ef3ab87883d583229992..e0299693216f9db80a1657e67783690b72d67000 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
# queue which stores taskes while max_clients are reached
my @tasks = qw();
+
%cfg_defaults = (
"general" => {
"log-file" => [\$log_file, "/var/run/".$prg.".log"],
}
daemon_log("shutting down gosa-si-server", 1);
- exit(0);
+ system("killall gosa-si-server");
}
$SIG{INT} = \&sig_int_handler;
print $socket $crypted_msg."\n";
daemon_log("INFO: send ".$header."msg to $address", 5);
- daemon_log("message:\n$msg", 8);
+ daemon_log("DEBUG: message:\n$msg", 9);
}
}
# an error occurred
if(( !$msg ) || ( !$msg_hash ) || ( !$module )){
+ my $sql_statement = "SELECT * FROM $main::known_clients_tn WHERE (hostname LIKE '".$heap->{'remote_ip'}."%')";
+ my $query_res = $known_clients_db->select_dbentry( $sql_statement );
+ while( my ($hit_num, $hit) = each %{ $query_res } ) {
+ my $host_name = $hit->{'hostname'};
+ my $host_key = $hit->{'hostkey'};
+ my $ping_msg = "<xml> <header>gosa_ping</header> <source>$server_address</source> <target>$host_name</target></xml>";
+ my $error = &send_msg_to_target($ping_msg, $host_name, $host_key, "gosa_ping");
+ &update_jobdb_status_for_send_msgs($ping_msg, $error);
+ }
$error++;
}
StderrEvent => "session_run_debug",
CloseEvent => "session_run_done",
);
-
$heap->{task}->{ $task->ID } = $task;
}
sub parse_package_info {