From a97bc1580d86c73f16674efae52cf0bcd66f20be Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 11 Mar 2008 10:59:39 +0000 Subject: [PATCH] Disconnect from LDAP-Server on shutdown. Exit with EXIT_SUCCESS on shutdown. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9670 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index e99285b80..1aa51726c 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -401,8 +401,12 @@ sub import_modules { sub sig_int_handler { my ($signal) = @_; + if(defined($ldap_handle)) { + $ldap_handle->disconnect; + } + daemon_log("shutting down gosa-si-server", 1); - exit(1); + exit(0); } $SIG{INT} = \&sig_int_handler; -- 2.30.2