Wrong pidfile path in official RPM logrotate config

General discussions here

Moderator: rgerhards

Google Ads


Wrong pidfile path in official RPM logrotate config

Postby jay7 » Tue Apr 11, 2017 9:07 am

Official RPM from rsyslog.com site contains /etc/logrotate.d/syslog file.
This file's postrotate looks like this:
Code: Select all
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript


But actual rsyslog's pidfile is /var/run/rsyslogd.pid (not syslogd.pid)
https://github.com/rsyslog/rsyslog/blob ... ogd.c#L149

So rsyslog receive no HUP after log rotation by default.

I'd suggest to use 'systemctl kill -s HUP rsyslog' instead on CentOS 7 and above anyway.

Not sure is it case for github issue?
jay7
New
 
Posts: 1
Joined: Wed Apr 05, 2017 5:32 am

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Google Ads


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests

cron