
我需要輪換 xinetd.log 檔案方面的幫助。我正在使用 CentOS8 並且我有這個 logrotate 檔案:
/var/log/xinetd.log {
compress
dateext
daily
rotate 7
missingok
copytruncate
postrotate
/etc/init.d/xinetd reload
endscript
}
但我收到“後旋轉錯誤”或其他錯誤,運行偵錯時丟失了日誌。但我知道崗位輪換不起作用。
我的主要問題是如何創建輪換後以在輪換後重新啟動 xinetd 服務?