Explicitly use systemctl in logrotate

For some reason (Debian bug?) the default rsyslog-rotate script was not
properly rotating rsyslog logfiles. Instead, explicitly call systemctl
kill -s HUP for this, using a full path.
This commit is contained in:
Joshua Boniface 2023-09-01 15:42:29 -04:00
parent 57010260bd
commit 5cd9566163
1 changed files with 1 additions and 1 deletions

View File

@ -16,6 +16,6 @@
delaycompress
sharedscripts
postrotate
/usr/lib/rsyslog/rsyslog-rotate &>/dev/null
/usr/bin/systemctl kill -s HUP rsyslog.service
endscript
}