This is the first batch of bugs reported regarding the use of systemctl to
signal daemons in logrotate postrotate scripts.
Prerequisite for systemctl kill:
- selinux-policy: https://bugzilla.redhat.com/show_bug.cgi?id=2369644
Cases where the ExecReload action of the daemon's unit file sends the
Looks good to me.
I have this in MySQL:
/usr/bin/kill -USR1 $(systemctl show --property MainPID --value mysqld)
https://src.fedoraproject.org/rpms/mysql8.4/blob/e1dd80/f/mysql-flush-logrotate.patch#_33
but the 'systemctl kill' looks like an elegant update I can use.
Michal
--
Michal Schorm
Some packages install logrotate configuration snippets with postrotate scripts
that call:
```
kill - `cat /run/ 2>/dev/null` 2>/dev/null || true
```
A non-comprehensive list: php-fpm, nginx, syslog-ng. The CONFIGURATION FILE
section of the logrotate(8) man page includes an example of this type