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-01-17 11:03:32 -05:00
parent 2c68341883
commit dc9ff33a8f
1 changed files with 1 additions and 1 deletions

View File

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