summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b2bbd9)
raw | patch | inline | side by side (parent: 9b2bbd9)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 10:59:39 +0000 (10:59 +0000) | ||
committer | janw <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9670 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-server | patch | blob | history |
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index e99285b80f8f4ef3eec607ed78bd86e73b7e4375..1aa51726cecf3abeed67bc4a9178263d388207ec 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
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;