Sample Header Ad - 728x90

logrotate script for xinetd postrotate

0 votes
0 answers
240 views
I need help with rotating my xinetd.log file. I'm using CentOS8 and I have this logrotate file: /var/log/xinetd.log { compress dateext daily rotate 7 missingok copytruncate postrotate /etc/init.d/xinetd reload endscript } But I get "postrotate error" or something, I lost the logs when running the debug. But I know the post rotate won't work. My main problem is how do I create a post rotate to restart the xinetd service after the rotation?
Asked by Gwynn (41 rep)
Aug 11, 2020, 01:32 AM