summaryrefslogtreecommitdiff
path: root/src/responder/pam
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-02-24 18:58:15 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-08 13:42:46 -0500
commit71cd2f7ce705561d8d8f3cb7f385a57bedad1ef1 (patch)
tree3d8e723c7deedc04468e4e0a1a52b60c0d0b302e /src/responder/pam
parentbc7d61995ed04de885cb8e4bf4c5f2dcbc780649 (diff)
downloadsssd-71cd2f7ce705561d8d8f3cb7f385a57bedad1ef1.tar.gz
sssd-71cd2f7ce705561d8d8f3cb7f385a57bedad1ef1.tar.bz2
sssd-71cd2f7ce705561d8d8f3cb7f385a57bedad1ef1.zip
Reopen logs when SIGHUP is caught
Upon receiving SIGHUP, the monitor signals all services to reopen their debug logs. It is also possible to signal individual services to reopen their particular files. Fixes: #332
Diffstat (limited to 'src/responder/pam')
-rw-r--r--src/responder/pam/pamsrv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/pam/pamsrv.c b/src/responder/pam/pamsrv.c
index ac1cf401..cb3429f1 100644
--- a/src/responder/pam/pamsrv.c
+++ b/src/responder/pam/pamsrv.c
@@ -49,6 +49,7 @@
struct sbus_method monitor_pam_methods[] = {
{ MON_CLI_METHOD_PING, monitor_common_pong },
{ MON_CLI_METHOD_RES_INIT, monitor_common_res_init },
+ { MON_CLI_METHOD_ROTATE, monitor_common_rotate_logs },
{ NULL, NULL }
};