Skip to content
Snippets Groups Projects
Select Git revision
  • 15d8c618f5fd6899b321b37081fd54a08587af8c
  • master default protected
  • main
  • update_github_actions
  • 144_rocky8_support
  • 195-update-pdk-to-300
  • 144-rocky8
  • add_test_github_test_workflow
  • pdk_2.4.0
  • fix_unclosed_let_block_in_defines_client_spec
  • validation_fixes
  • freeradius_3_0_21_config_updates
  • data_types
  • PrepareBuster
  • travis
  • 4.0.1
  • 4.0.0
  • 3.9.2
  • 3.9.1
  • 3.9.0
  • 3.8.2
  • 3.8.1
  • 3.8.0
  • 3.7.0
  • 3.6.0
  • 3.5.0
  • 3.4.3
  • 3.4.2
  • 3.4.1
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.3.1
35 results

radiusd.logrotate

  • user avatar
    Jonathan Gazeley authored
    f7a55936
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    radiusd.logrotate 1.17 KiB
    # You can use this to rotate the /var/log/radius/* files, simply copy
    # it to /etc/logrotate.d/radiusd
    
    # There are different detail-rotating strategies you can use.  One is
    # to write to a single detail file per IP and use the rotate config
    # below.  Another is to write to a daily detail file per IP with:
    #     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
    # (or similar) in radiusd.conf, without rotation.  If you go with the
    # second technique, you will need another cron job that removes old
    # detail files.  You do not need to comment out the below for method #2.
    /var/log/radius/radacct/*/*.log {
    	daily
    	rotate 7
    	nocreate
    	missingok
    	compress
    }
    
    /var/log/radius/checkrad.log {
    	weekly
    	rotate 1
    	create
    	missingok
    	compress
    }
    
    /var/log/radius/radius*.log {
            weekly
            rotate 26
            create
            missingok
            compress
    }
    
    /var/log/radius/radutmp {
    	weekly
    	rotate 1
    	create
    	compress
    	missingok
    }
    
    /var/log/radius/radwtmp {
    	weekly
    	rotate 1
    	create
    	compress
    	missingok
    }
    /var/log/radius/sqltrace.sql {
            weekly
            rotate 1
            create
            compress
            missingok
    }
    
    lastrotate
    	kill -HUP `cat /var/run/radiusd/radiusd.pid`
    endscript