2016-07-21 01:55:17 -0600 | asked a question | Restarting auditd from its dispatcher Hi, I would like to issue a restart from inside the dispatcher program that runs within auditd subsystem. So the entry to file below will have something like. /etc/audit/auditd.conf I have tried implementing a fork exec in MyOwnDispatcher and it runs a child process. The child is able to issue "service auditd restart" but it gets killed before the restart it done, including auditd, MyOwnDispatcher exits gracefully after the fork. This is my child process. Can someone suggest the right approach? Appreciate your response. Thank you. |
2016-07-19 20:57:11 -0600 | commented question | auditd fails to restart and also takes time to stop Thank you florian and bitwiseoperator. |
2016-07-19 20:57:04 -0600 | commented question | auditd fails to restart and also takes time to stop Yes you are correct. I am restarting auditd from within my own dispatcher. Steps - 1. forking a process in my dispatcher (this one will exit after fork gracefully) 2. I issue "service auditd restart" from the forked child process. The restart works and my dispatcher starts again but it takes a while for auditd to die in the first place. Restarting has issues in RHEL 7.2, if you do a fresh "service auditd restart" from console if auditd is already running, then the dispatcher starts before auditd dies and restarts. This does not happen in RHEL 7. I noticed a change in -9 second delay in script |
2016-07-18 20:50:14 -0600 | asked a question | auditd fails to restart and also takes time to stop auditd service does not restart as expected and takes a long time to stop if it does so. I can see the systemd journal logs that at end systemd has to issue a kill signal to stop it forcefully. I need auditd to restart as soon as possible as I issue a restart from my program. Also in RHEL7.2 systemd doesn't wait for auditd to stop before it moves ahead with next steps in auditd restart process. Can someone explain the stopping requirements for auditd and better way to do so if I want to. Thank you. Sharing systemd Logs during the restart process: (more) |