svc-sar revision 7c478bd95313f5f23a4c958a745db2134aa03244
278N/A# The contents of this file are subject to the terms of the 278N/A# Common Development and Distribution License, Version 1.0 only 278N/A# (the "License"). You may not use this file except in compliance 278N/A# See the License for the specific language governing permissions 278N/A# and limitations under the License. 278N/A# When distributing Covered Code, include this CDDL HEADER in each 278N/A# If applicable, add the following below this CDDL HEADER, with the 278N/A# fields enclosed by brackets "[]" replaced with your own identifying 278N/A# information: Portions Copyright [yyyy] [name of copyright owner] 278N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 1273N/A# Use is subject to license terms. 618N/A# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 278N/A#ident "%Z%%M% %I% %E% SMI" 4881N/A# Start method script for the system activity reporting service. 1273N/A# To enable periodic collection of data, you may need to uncomment 3996N/A# utmpx's runlevel entries are only set on reaching single-user, 3996N/A# so there might not be a who -r entry yet. 278N/A cat << EOF
> /var/spool/cron/crontabs/sys 278N/A# The sys crontab should be used to do performance collection. 278N/A# Please note that if the system/sar service is disabled this file 278N/A# will be deleted. Please keep a backup copy if you change the 278N/A0 * * * 0-6 /usr/lib/sa/sa1 278N/A20,40 8-17 * * 1-5 /usr/lib/sa/sa1 278N/A5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A 278N/A echo "Usage: $0 { start | stop }"