summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a2a662)
raw | patch | inline | side by side (parent: 6a2a662)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Oct 2008 08:29:04 +0000 (08:29 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Oct 2008 08:29:04 +0000 (08:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12701 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 61528f048d6522cff65ef50d52481509ca95b314..cdb57a3e351fa933b67137d2c6ccbe7487972d14 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
}
}
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