Hirdetés

Új hozzászólás Aktív témák

  • tjsz

    senior tag

    válasz vargalex #68 üzenetére

    /etc/config/system:

    config system
    option zonename 'Europe/Budapest'
    option timezone 'CET-1CEST,M3.5.0,M10.5.0/3'
    option hostname 'WDR3600'
    option conloglevel '8'
    option cronloglevel '5'
    option log_type 'file'
    option log_file '/mnt/sam/log/system.log'
    option log_size '0'

    /etc/logrotate.conf:

    # rotate log files daily
    daily

    # keep 365 days worth of backlogs
    rotate 365

    # create new (empty) log files after rotating old ones
    create

    notifempty
    nomail
    #olddir /var/log/backup/
    missingok
    dateext

    # uncomment this if you want your log files compressed
    #compress

    # packages can drop log rotation information into this directory
    include /etc/logrotate.d

    # no packages own lastlog or wtmp -- we'll rotate them here
    #/var/log/wtmp {
    # monthly
    # create 0664 root utmp
    # rotate 1
    #}

    # system-specific logs may be also be configured here.

    [ Szerkesztve ]

Új hozzászólás Aktív témák