#!/bin/sh
# Ratbox 1.x log rotation script
# Crontab this to the interval you want

# Set this
ircd_path=/set/me

# No more user servicable parts
cd $ircd_path
mv logs/ircd.log logs/ircd.log.`date "+%Y%m%d"`
kill -HUP `cat etc/ircd.pid`
gzip logs/ircd.log.`date "+%Y%m%d"`
