Openvpn logrotate.d 設定

編輯/etc/logrotate.d/openvpn

vim /etc/logrotate.d/openvpn

/var/log/openvpn/openvpn.log {
daily  #每日歸為一個log檔
rotate 99999999 #可以保存9999999個檔案
compress #壓縮檔案
dateext  #以日期重新命名
postrotate  
  /etc/init.d/openvpn reload
endscript
}
This entry was posted in Linux, OpenVPN. Bookmark the permalink.