Linux

CentOS 無法啟動並顯示“A stop job is running for Security Auditing Service”消息

  • August 5, 2021

CentOS 在啟動過程中列印以下內容

[ ***  ] A stop job is running for Security Auditing Service (9s / 1min 30s)

然後切換到單使用者模式。

問題出在/etc/audit/auditd.conf- 見man 5 auditd.conf

在記憶體不足的情況下(用於審計日誌),設置為將伺服器切換到單使用者模式:

space_left_action = SINGLE
admin_space_left_action = SINGLE

解決方法是調整space_leftadmin_space_left或恢復以下的原始值:

space_left_action = SYSLOG
admin_space_left_action = SUSPEND

引用自:https://serverfault.com/questions/1073657