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
2c68341883
commit
dc9ff33a8f
|
@ -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