Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle the logrotate with SEMS? #202

Open
arovietnam opened this issue Nov 30, 2023 · 2 comments
Open

How to handle the logrotate with SEMS? #202

arovietnam opened this issue Nov 30, 2023 · 2 comments

Comments

@arovietnam
Copy link

Hi,

I'm currently trying to sending the:

  • kill -SIGHUP sems_pid
  • kill -HUP sems_pid
    to do a logrotate job in CentOS 7. Unfortunately, it did not work as I think, it will kill the SEMS process instead.
    Please let me know how I can handle this problem, thank you!
@denyspozniak
Copy link
Contributor

Hey!
Looks SIGHUP stops handling calls.

if (sig == SIGHUP) {

@denyspozniak
Copy link
Contributor

I understand that you need to send a SIGHUP from logrotate to rsyslogd:

"/var/log/sems.log"
{
...
  postrotate
    pkill -HUP rsyslogd
  endscript
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants