From d94208768832968e7cb894375d498af2026bed03 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Wed, 15 Oct 2008 08:29:04 +0000 Subject: [PATCH] bugfix: gosaTriggered.pm, softupdate with wakeup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12701 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 61528f048..cdb57a3e3 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1496,7 +1496,15 @@ sub process_task { } } if( $found_ip_flag == 0) { - daemon_log("$session_id WARNING: no host found in known_clients with mac address '$answer_target'", 3); + daemon_log("$session_id WARNING: no host found in known_clients or foreign_clients with mac address '$answer_target'", 3); + + # Sometimes the client is still booting or does not wake up, in this case reactivate the job (if it exists) with a delay of 30 sec + my $delay_timestamp = &calc_timestamp(&get_time(), "plus", 30); + my $sql = "UPDATE $job_queue_tn Set timestamp='$delay_timestamp', status='waiting' WHERE (macaddress='$answer_target' AND header='$answer_header')"; + my $res = $job_db->update_dbentry($sql); + daemon_log("$session_id INFO: '$answer_header'-job will be reactivated at '$delay_timestamp' ". + "cause client '$answer_target' is currently not available", 5); + daemon_log("$session_id $sql", 7); } # Answer is for one specific host -- 2.30.2