From: janw Date: Tue, 11 Mar 2008 10:59:39 +0000 (+0000) Subject: Disconnect from LDAP-Server on shutdown. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a97bc1580d86c73f16674efae52cf0bcd66f20be;p=gosa.git 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 --- 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;