-
Notifications
You must be signed in to change notification settings - Fork 27
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
rsyslog 8.33.0: logrotate config still tries to reference PID file, but rsyslog is started with the option to not create a PID file #42
Comments
Workaround for anyone landing here affected by the change in the current 8.33.0 package:
Here is the content to put into the
|
systemd does not require a pid file to track the rsyslogd process. By not writing a pid file, the rsyslog service can be locked down even further as it no longer needs write access to /var/run.
A little late to this, but yesterday I added a change to the logrotate script, so the HUP will now be triggered by:
as @mbiebl described here: rsyslog/rsyslog@6fafe7c. That should fix it, right? |
fails with current rhel7 selinux policies:
so workaround given by atc0005 still the best (?) solution here for RHEL SELinux folks |
And to allow:
|
regarding systemd_unit_file_t it looks like logrotate_t is almost in "god mode":
so it kinda strange stop isn't already there. but i will always choose workaround with pid file over selinux module because it affects only rsyslog. giving logrotate_t power to potentially shutdown any systemd service (while it lacks of that power currently -- and yes, it is already almost "god" now) is totally another level of workaround. personally -- i'll stick with pid file in such case |
if logrotate has the ability to send rsyslog the HUP signal, it also has the
ability to send it TERM or KILL
David Lang
|
well, in current selinux policies stop is right there and it wasn't there before... all i was trying to say is if i had to choose between those two workarounds i wouldn't choose selinux module as it changes not only rsyslog stuff. it broadens capabilities beyond rsyslog case nowadays rsyslog creates pid file and policies have "stop" ability. no more problems, life is good again... |
no disagreement about not wanting to rely on selinux and systemd.
|
Short version:
Details:
From the
/etc/logrotate.d/syslog
file on a CentOS 7 system:[root@centos7-test init.d]# ls -l /var/run/syslogd.pid
[root@centos7-test init.d]# systemctl status rsyslog
According to rpm, the faulty
/etc/logrotate.d/syslog
file is owned by the latest 8.33.0 package:[root@centos7-test init.d]# rpm -qf /etc/logrotate.d/syslog
See also rsyslog/rsyslog-pkg-ubuntu#74 and rsyslog/rsyslog#2143
The text was updated successfully, but these errors were encountered: