systemctl restart logrotate 抛出错误“无法重新启动 logrotate.service:未找到单元。”

问题描述 投票:0回答:1

我尝试更改 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.

linux logging redhat rsyslog logrotate
1个回答
0
投票

如果安装了 logrotate 软件包,但仍然遇到问题,您可以通过以下方式获取最新状态:

cat /var/lib/logrotate/logrotate.status

© www.soinside.com 2019 - 2024. All rights reserved.