如何重新安装Fedora linux 中的rsyslog-CSDN论坛

2025-03-31 07:13:58
推荐回答(1个)
回答(1):

/var/log/udp_send/udp_send.log {
create 0777 root root
daily
rotate 10
missingok
notifempty
copytruncate
sharedscripts
prerotate
/usr/bin/chattr -a /var/log/udp_send/udp_send.log
endscript
postrotate
/usr/bin/kill -HUP rsyslogd
/usr/bin/chattr +a /var/log/udp_send/udp_send.log
endscript
}