logadm.conf revision 11829:ce38b41173bc
1228753Smm# 2228753Smm# CDDL HEADER START 3228753Smm# 4228753Smm# The contents of this file are subject to the terms of the 5228753Smm# Common Development and Distribution License (the "License"). 6228753Smm# You may not use this file except in compliance with the License. 7228753Smm# 8228753Smm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9228753Smm# or http://www.opensolaris.org/os/licensing. 10228753Smm# See the License for the specific language governing permissions 11228753Smm# and limitations under the License. 12228753Smm# 13228753Smm# When distributing Covered Code, include this CDDL HEADER in each 14228753Smm# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15228753Smm# If applicable, add the following below this CDDL HEADER, with the 16228753Smm# fields enclosed by brackets "[]" replaced with your own identifying 17228753Smm# information: Portions Copyright [yyyy] [name of copyright owner] 18228753Smm# 19228753Smm# CDDL HEADER END 20228753Smm# 21228753Smm# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 22228753Smm# Use is subject to license terms. 23228753Smm# 24228753Smm# logadm.conf 25228753Smm# 26228753Smm# Default settings for system log file management. 27228753Smm# The -w option to logadm(1M) is the preferred way to write to this file, 28228753Smm# but if you do edit it by hand, use "logadm -V" to check it for errors. 29228753Smm# 30228753Smm# The format of lines in this file is: 31228753Smm# <logname> <options> 32228753Smm# For each logname listed here, the default options to logadm 33228753Smm# are given. Options given on the logadm command line override 34228753Smm# the defaults contained in this file. 35229592Smm# 36228753Smm# logadm typically runs early every morning via an entry in 37228753Smm# root's crontab (see crontab(1)). 38228753Smm# 39228753Smm/var/log/syslog -C 8 -a 'kill -HUP `cat /var/run/syslog.pid`' 40228753Smm/var/adm/messages -C 4 -a 'kill -HUP `cat /var/run/syslog.pid`' 41228753Smm/var/cron/log -c -s 512k -t /var/cron/olog 42228753Smm/var/lp/logs/lpsched -C 2 -N -t '$file.$N' 43228753Smm/var/fm/fmd/errlog -N -s 2m -M '/usr/sbin/fmadm -q rotate errlog && mv /var/fm/fmd/errlog.0- $nfile' 44228753Smm/var/fm/fmd/fltlog -N -A 6m -s 10m -M '/usr/sbin/fmadm -q rotate fltlog && mv /var/fm/fmd/fltlog.0- $nfile' 45228753Smmsmf_logs /var/svc/log/*.log -C 8 -s 1m -c 46228753Smm# 47228753Smm# The entry below is used by turnacct(1M) 48228753Smm# 49228753Smm/var/adm/pacct -C 0 -N -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never 50228753Smm# 51228753Smm# The entry below manages the Dynamic Resource Pools daemon (poold(1M)) logfile. 52228753Smm# 53228753Smm/var/log/pool/poold -N -s 512k -a 'pkill -HUP poold; true' 54228753Smm