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:
		| @@ -16,6 +16,6 @@ | ||||
| 	delaycompress | ||||
| 	sharedscripts | ||||
| 	postrotate | ||||
|         /usr/lib/rsyslog/rsyslog-rotate &>/dev/null | ||||
|         /usr/bin/systemctl kill -s HUP rsyslog.service | ||||
| 	endscript | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user