我尝试更改 logrotate.conf 只是为了在更改 md_logging.c 之前确定 我无法通过
检查功能systemctl restart logrotate
Failed to restart logrotate.service: Unit not found.
我还使用以下命令尝试了 logrotate.conf :
systemctl restart logrotate.conf
Failed to restart logrotate.conf.service: Unit not found.
如果安装了 logrotate 软件包,但仍然遇到问题,您可以通过以下方式获取最新状态:
cat /var/lib/logrotate/logrotate.status