xref: /illumos-gate/usr/src/cmd/logadm/logadm.conf (revision bbf21555)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
59dd0f810Scindi# Common Development and Distribution License (the "License").
69dd0f810Scindi# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
21f6e214c7SGavin Maltby# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
227c478bd9Sstevel@tonic-gate#
237c478bd9Sstevel@tonic-gate# logadm.conf
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# Default settings for system log file management.
26*bbf21555SRichard Lowe# The -w option to logadm(8) is the preferred way to write to this file,
277c478bd9Sstevel@tonic-gate# but if you do edit it by hand, use "logadm -V" to check it for errors.
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate# The format of lines in this file is:
307c478bd9Sstevel@tonic-gate#       <logname> <options>
317c478bd9Sstevel@tonic-gate# For each logname listed here, the default options to logadm
327c478bd9Sstevel@tonic-gate# are given.  Options given on the logadm command line override
337c478bd9Sstevel@tonic-gate# the defaults contained in this file.
347c478bd9Sstevel@tonic-gate#
357c478bd9Sstevel@tonic-gate# logadm typically runs early every morning via an entry in
367c478bd9Sstevel@tonic-gate# root's crontab (see crontab(1)).
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gate/var/log/syslog -C 8 -a 'kill -HUP `cat /var/run/syslog.pid`'
397c478bd9Sstevel@tonic-gate/var/adm/messages -C 4 -a 'kill -HUP `cat /var/run/syslog.pid`'
407c478bd9Sstevel@tonic-gate/var/cron/log -c -s 512k -t /var/cron/olog
417c478bd9Sstevel@tonic-gate/var/lp/logs/lpsched -C 2 -N -t '$file.$N'
427c478bd9Sstevel@tonic-gate/var/fm/fmd/errlog -N -s 2m -M '/usr/sbin/fmadm -q rotate errlog && mv /var/fm/fmd/errlog.0- $nfile'
439dd0f810Scindi/var/fm/fmd/fltlog -N -A 6m -s 10m -M '/usr/sbin/fmadm -q rotate fltlog && mv /var/fm/fmd/fltlog.0- $nfile'
44fbe4944aSPetr Sumberasmf_logs /var/svc/log/*.log -C 8 -s 1m -c
457c478bd9Sstevel@tonic-gate#
46*bbf21555SRichard Lowe# The entry below is used by turnacct(8)
477c478bd9Sstevel@tonic-gate#
487c478bd9Sstevel@tonic-gate/var/adm/pacct -C 0 -N -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never
497c478bd9Sstevel@tonic-gate#
50*bbf21555SRichard Lowe# The entry below manages the Dynamic Resource Pools daemon (poold(8)) logfile.
517c478bd9Sstevel@tonic-gate#
527c478bd9Sstevel@tonic-gate/var/log/pool/poold -N -s 512k -a 'pkill -HUP poold; true'
53