summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0dede63)
raw | patch | inline | side by side (parent: 0dede63)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 15:43:13 +0000 (15:43 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 15:43:13 +0000 (15:43 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10826 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-server | patch | blob | history | |
gosa-si/modules/SIPackages.pm | patch | blob | history |
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 8a897ebee5c4dc0bca6d0188df1c97468201e70a..7c689a3229ff41ae765363bc48b7bde0cb41f375 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
my $modules_path = "/usr/lib/gosa-si/modules";
use lib "/usr/lib/gosa-si/modules";
-my $server_version = "$HeadURL$:$Rev$";
+my $server_version = '$HeadURL$:$Rev$';
+my $server_headURL;
+my $server_revision;
+my $server_status;
+
# TODO es gibt eine globale funktion get_ldap_handle
# - ist in einer session dieses ldap handle schon vorhanden, wird es zurückgegeben
};
}
+# parse head url and revision from svn
+my $server_status_hash = { 'developmental'=>'revision', 'stable'=>'release'};
+$server_version =~ /^\$HeadURL: (\S+) \$:\$Rev: (\d+) \$$/;
+$server_headURL = defined $1 ? $1 : 'unknown' ;
+$server_revision = defined $2 ? $2 : 'unknown' ;
+if ($server_headURL =~ /\/tag\// ||
+ $server_headURL =~ /\/branches\// ) {
+ $server_status = "stable";
+} else {
+ $server_status = "developmental" ;
+}
+
+
daemon_log(" ", 1);
daemon_log("$0 started!", 1);
+daemon_log("status: $server_status", 1);
+daemon_log($server_status_hash->{$server_status}.": $server_revision", 1);
if ($no_bus > 0) {
$bus_activ = "false"
index e81b1d5336a575d33a98f9a20c7a18306109e166..aa040b874c23c75134becb0f2ca574249aaefa33 100644 (file)
# Each module has to have a function 'process_incoming_msg'. This function works as a interface to gosa-sd and receives the msg hash from gosa-sd. 'process_incoming_function checks, wether it has a function to process the incoming msg and forward the msg to it.
-
use strict;
use warnings;
use GOSA::GosaSupportDaemon;
my $source = @{$msg_hash->{source}}[0];
my $mac_address = @{$msg_hash->{mac_address}}[0];
my $gotoHardwareChecksum = @{$msg_hash->{gotoHardwareChecksum}}[0];
+ my $client_status = @{$msg_hash->{client_status}}[0];
+ my $client_revision = @{$msg_hash->{client_revision}}[0];
# number of known clients
my $nu_clients= $main::known_clients_db->count_dbentries('known_clients');
push(@out_msg_l, $hardware_config_out);
}
+ &main::daemon_log("$session_id INFO: register client $source ($mac_address)", 5);
+ &main::daemon_log("$session_id INFO: client version: $client_status - $client_revision", 5);
+
return @out_msg_l;
}