systemctl 啟動時 shibd 守護程式“超時”

systemctl 啟動時 shibd 守護程式“超時”

我有一台使用 shibboleth2 shibd 守護程序來允許對資料庫進行遠端身份驗證的伺服器。

守護程式在啟動/重新載入時讀取非常大的聯合元資料檔案(大約 34MB)。這需要幾分鐘的時間來處理。

以前它在 systemctl 超時限制 90 秒內完成。不得超過此限度。

我嘗試透過以下方式編輯 /etc/systemd/system.conf 來延長 systemctl 超時,但沒有成功:

DefaultTimeoutStartSec=600s
DefaultTimeoutStopSec=300s

這應該會覆蓋 90 秒的預設逾時。

然後我跑了

systemctl daemon-reload
systemctl daemon-reexec

嘗試重新載入 systemctl 配置本身以啟用新的逾時。

然而超時似乎保持不變,並且命令

systemctl start shibd

約5分鐘後超時

對於這裡發生的事情有什麼建議嗎?我還沒有重試簡單地重新啟動伺服器,因為它是生產伺服器並且會影響多個應用程式。

答案1

相關內容