[SSSD] [PATCHES] Allow changing log-level without restarting SSSD

Stephen Gallagher sgallagh at redhat.com
Mon May 2 18:28:15 UTC 2011


These patches are dependent on the patch provided in my earlier email
"Override config file debug_level with command-line"

Patch 0002: Create common sss_monitor_init()

This was implemented almost identically for both the responders
and the providers. It is easier to maintain as a single routine.

This patch also adds the ability to provide a private context to
attach to the sbus_connection for later use.



Patch 0003: Allow changing the log level without restart

We will now re-read the confdb debug_level value when processing
the monitor_common_logrotate() function, which occurs when the
monitor receives a SIGHUP.



For now, this can be tested by using ldbedit
on /var/lib/sss/db/confdb.ldb to change the debug_level values and then
send 'kill -HUP $(pidof sssd)'. In the future, I will write a
command-line tool to effect this change more easily.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Create-common-sss_monitor_init.patch
Type: text/x-patch
Size: 7448 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110502/ea2b640b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Allow-changing-the-log-level-without-restart.patch
Type: text/x-patch
Size: 12242 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110502/ea2b640b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110502/ea2b640b/attachment.sig>


More information about the sssd-devel mailing list