summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 39d6fba)
raw | patch | inline | side by side (parent: 39d6fba)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Feb 2008 12:58:15 +0000 (12:58 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Feb 2008 12:58:15 +0000 (12:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9072 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 9e18182a260f8d8356dba98045ec45c0395e6c85..5dd01c3d7c61c537b599f1cb94b884690fabea0d 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
}
+sub sig_int_handler {
+ my ($signal) = @_;
+
+ daemon_log("shutting down gosa-si-server", 1);
+ exit(1);
+}
+$SIG{INT} = \&sig_int_handler;
+
+
#=== FUNCTION ================================================================
# NAME: logging
# PARAMETERS: level - string - default 'info'
else {
if ( !$server_domain) {
daemon_log("ERROR: please specify a gosa-si-server address or a domain in config file", 1);
- exit( 1 );
+ kill 2, $$;
}
my @tmp_servers = &get_server_addresses($server_domain);
+ if( 0 == @tmp_servers ) {
+ daemon_log("ERROR: no gosa-si-server found in DNS for domain '$server_domain'",1);
+ daemon_log("ERROR: please specify a gosa-si-server address or a domain in config file", 1);
+ kill 2, $$;
+ }
+
foreach my $server (@tmp_servers) {
unshift(@servers, $server);
}