-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi Maxim,
I'm coming back to you with an idea to improve configuration management.
While we can use spampd --show config to show the current config, it shows only the config options defined in config files.
Would it be possible to add a signal handler so that one can send a SIGUSR2 to the master spampd process to it will send the current runtime config to the log? (The idea is shamelessly taken from OpenVPN which logs statistics on SIGUSR2)
That way it would be possible to see what spampd really runs, even with a combination of command options and config files.
Unfortunately I don't know perl enough to do this myself. I saw that Net::Server handles HUP and provides a hook for it but is it possible to handle USR2 with Net::Server?
Thanks,
Simon
Metadata
Metadata
Assignees
Labels
No labels