add configuration for signal file and acl file, let user select hostname, catch signals and print why we are quiting, make nop cause one new version, not two

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21756 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-07-31 22:15:08 +00:00
parent 663a893c16
commit 0382061b7b
7 changed files with 212 additions and 39 deletions

View File

@@ -124,6 +124,7 @@ kadm5_log_reinit (kadm5_server_context *context)
kadm5_log_context *log_context = &context->log_context;
if (log_context->log_fd != -1) {
flock (log_context->log_fd, LOCK_UN);
close (log_context->log_fd);
log_context->log_fd = -1;
}
@@ -708,7 +709,7 @@ kadm5_log_replay_modify (kadm5_server_context *context,
}
/*
* Add a `nop' operation to the log.
* Add a `nop' operation to the log. Does not close the log.
*/
kadm5_ret_t
@@ -733,9 +734,7 @@ kadm5_log_nop (kadm5_server_context *context)
}
ret = kadm5_log_flush (log_context, sp);
krb5_storage_free (sp);
if (ret)
return ret;
ret = kadm5_log_end (context);
return ret;
}
@@ -913,7 +912,7 @@ kadm5_log_truncate (kadm5_server_context *server_context)
if (ret)
return ret;
ret = kadm5_log_set_version (server_context, vno + 1);
ret = kadm5_log_set_version (server_context, vno);
if (ret)
return ret;
@@ -927,3 +926,14 @@ kadm5_log_truncate (kadm5_server_context *server_context)
return 0;
}
const char *
kadm5_log_signal_socket(krb5_context context)
{
return krb5_config_get_string_default(context,
NULL,
KADM5_LOG_SIGNAL,
"kdc",
"signal_socket",
NULL);
}