# Monthly configuration file for rot[t]log
# Allowed values only between two { }
#
#
#
# This is a sample configuration file. Fit to your needs.


# list of logs to be rotated:
/var/adm/log.daemon,/var/adm/log.debug {
           # To create a new log file with perms, own and group specified
           create 600 root root 
           # These actions will be performed after archived logfile 
           postrotate
               /sbin/killall -HUP syslogd
           endscript
           # Don't compress yet logfile (see README)
           delaycompress
           # Let in newlogfile events logged from first day of this month
           logpart "#1 day"
}

/var/adm/messages {
        # Store compressed messages in $packdir/messages
        # ($packdir is specified in main rc file)
	storedir messages
	# These actions will be performed before archive logfile
	prerotate
		/sbin/killall -STOP myprogram
	endscript
	# Rotate logs with extensions from .1 to .5
        rotate 5
        # Don't rotate log if it's empty
	notifempty
}

/var/adm/wtmp,/var/adm/lastlog {
           # To create a new log file with perms, own and group specified
           create 644 root root
           # Don't compress yet logfile (see README)
           delaycompress
           # Send notification e-mail message to a different user from global touser
           touser "admin@example.net"
}

