# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

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

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

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

# no packages own 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.
/servers/hlds/cstrike/logs/*.log {
        rotate 12
        compress
        ifempty
        missingok
        nocreate
        olddir /servers/hlds/cstrike/logs/old
}
/servers/srcds/cstrike/logs/server1/*.log {
        rotate 12
        compress
        ifempty
        missingok
        nocreate
        olddir /servers/srcds/cstrike/logs/server1/old
}


Christoph Franke wrote:
--
Hello,

just a short question. Does anybody use logrotate for a logfile rotation
of their hlds or srcds logfiles. And if so, what does your config file
from /etc/logrotate.d look like?

Regards

Christoph
--
Content-Description: Digital signature

[ signature.asc of type application/pgp-signature deleted ]
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux
.


--
My "Foundation" verse:
Isa 54:17  No weapon that is formed against thee shall prosper; and
every tongue that shall rise against thee in judgment thou shalt
condemn. This is the heritage of the servants of the LORD, and their
righteousness is of me, saith the LORD.

-- carpe ductum -- "Grab the tape"
CDTT (Certified Duct Tape Technician)

Linux user #322099
Machines:
206822
256638
276825
http://counter.li.org/

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to