Code

Disconnect from LDAP-Server on shutdown.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Mar 2008 10:59:39 +0000 (10:59 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Mar 2008 10:59:39 +0000 (10:59 +0000)
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

index e99285b80f8f4ef3eec607ed78bd86e73b7e4375..1aa51726cecf3abeed67bc4a9178263d388207ec 100755 (executable)
@@ -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;