etc/monthly
author jmmv <jmmv@NetBSD.org>
Fri, 02 Apr 2004 13:13:47 +0000
branchtrunk
changeset 125761 d6de26b19154
parent 59113 d54633fe70fc
child 125981 2f850760443b
permissions -rw-r--r--
Introduce and use the rcvar_manpage variable, which contains the manual page name where the user should look at for documentation about rcvar. It defaults to 'rc.subr(5)', as rc.subr is mainly used by rc.d scripts. This variable is useful to let the daily, weekly, monthly and security scripts tune the warning message shown when any of the variables they handle is not properly set. Closes PR misc/23908.

#!/bin/sh -
#
#	$NetBSD: monthly,v 1.9 2004/04/02 13:13:47 jmmv Exp $
#	from: @(#)monthly	8.1 (Berkeley) 6/9/93
#

export PATH=/bin:/usr/bin:/sbin:/usr/sbin
umask 077

if [ -s /etc/monthly.conf ]; then
	. /etc/monthly.conf
fi

host=`hostname`
date=`date`
rcvar_manpage='monthly.conf(5)'

echo "To: ${MAILTO:-root}"
echo "Subject: $host monthly output for $date"
echo ""

# echo ""
# echo "Doing login accounting:"
# ac -p | sort -nr +1

if [ -f /etc/monthly.local ]; then
	echo ""
	echo "Running /etc/monthly.local:"
	. /etc/monthly.local
fi