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:
parent
57010260bd
commit
5cd9566163
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue