Linux 审计服务关停报错问题
问题描述
systemctl stop auditd.service
报错如下:
Failed to stop auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status auditd.service' for details.
解决方案
vim /usr/lib/systemd/system/auditd.service
#RefuseManualStop=yes 改为
RefuseManualStop=no
然后重启daemon
systemctl daemon-reload
接下来成功执行 systemctl stop/start auditd.service