
xinetd.log 파일을 회전하는 데 도움이 필요합니다. CentOS8을 사용하고 있으며 다음 logrotate 파일이 있습니다.
/var/log/xinetd.log {
compress
dateext
daily
rotate 7
missingok
copytruncate
postrotate
/etc/init.d/xinetd reload
endscript
}
하지만 "후회전 오류" 같은 것이 발생합니다. 디버그를 실행할 때 로그가 손실되었습니다. 하지만 포스트 회전이 작동하지 않는다는 것을 알고 있습니다.
내 주요 문제는 회전 후 xinetd 서비스를 다시 시작하기 위해 회전 후를 어떻게 생성합니까?