- Make /etc/daily run /etc/daily.local if it exists. Make similar change for
weekly and monthly scripts. - Update FILES section in manpages.
This commit is contained in:
parent
1bba558e50
commit
645ee40728
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# $NetBSD: daily,v 1.30 2000/01/07 03:52:23 enami Exp $
|
# $NetBSD: daily,v 1.31 2000/01/10 17:03:49 ad Exp $
|
||||||
# @(#)daily 8.2 (Berkeley) 1/25/94
|
# @(#)daily 8.2 (Berkeley) 1/25/94
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -221,4 +221,10 @@ if checkyesno run_security; then
|
||||||
mail -s "$host daily insecurity output for $date" $MAILTO < $SECOUT
|
mail -s "$host daily insecurity output for $date" $MAILTO < $SECOUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /etc/daily.local ]; then
|
||||||
|
echo ""
|
||||||
|
echo "Running /etc/daily.local:"
|
||||||
|
. /etc/daily.local
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf $TMPDIR
|
rm -rf $TMPDIR
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# $NetBSD: monthly,v 1.7 1998/09/15 05:06:31 lukem Exp $
|
# $NetBSD: monthly,v 1.8 2000/01/10 17:03:49 ad Exp $
|
||||||
# from: @(#)monthly 8.1 (Berkeley) 6/9/93
|
# from: @(#)monthly 8.1 (Berkeley) 6/9/93
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -22,5 +22,8 @@ echo ""
|
||||||
# echo "Doing login accounting:"
|
# echo "Doing login accounting:"
|
||||||
# ac -p | sort -nr +1
|
# ac -p | sort -nr +1
|
||||||
|
|
||||||
echo "Nothing to do!"
|
if [ -f /etc/monthly.local ]; then
|
||||||
#echo "."
|
echo ""
|
||||||
|
echo "Running /etc/monthly.local:"
|
||||||
|
. /etc/monthly.local
|
||||||
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# $NetBSD: weekly,v 1.13 1999/04/23 08:20:28 kleink Exp $
|
# $NetBSD: weekly,v 1.14 2000/01/10 17:03:49 ad Exp $
|
||||||
# from: @(#)weekly 8.2 (Berkeley) 1/2/94
|
# from: @(#)weekly 8.2 (Berkeley) 1/2/94
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -71,3 +71,9 @@ if checkyesno rebuild_locatedb && [ -f /var/db/locate.database ]; then
|
||||||
else
|
else
|
||||||
echo "Not rebuilding locate database; no /var/db/locate.database"
|
echo "Not rebuilding locate database; no /var/db/locate.database"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /etc/weekly.local ]; then
|
||||||
|
echo ""
|
||||||
|
echo "Running /etc/weekly.local:"
|
||||||
|
. /etc/weekly.local
|
||||||
|
fi
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: daily.conf.5,v 1.4 1999/03/17 20:19:44 garbled Exp $
|
.\" $NetBSD: daily.conf.5,v 1.5 2000/01/10 17:03:49 ad Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1996 Matthew R. Green
|
.\" Copyright (c) 1996 Matthew R. Green
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
|
@ -104,8 +104,15 @@ script looking for possible security problems with the system.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
|
.Bl -tag -width /etc/daily.local -compact
|
||||||
|
.It Pa /etc/daily
|
||||||
|
daily maintenance script
|
||||||
|
.It Pa /etc/daily.conf
|
||||||
|
daily maintenance configuration
|
||||||
|
.It Pa /etc/daily.local
|
||||||
|
local site additions to
|
||||||
.Pa /etc/daily
|
.Pa /etc/daily
|
||||||
.Pa /etc/daily.conf
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr weekly.conf 5 ,
|
.Xr weekly.conf 5 ,
|
||||||
.Xr monthly.conf 5 ,
|
.Xr monthly.conf 5 ,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: monthly.conf.5,v 1.4 1999/03/17 20:19:47 garbled Exp $
|
.\" $NetBSD: monthly.conf.5,v 1.5 2000/01/10 17:03:49 ad Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1996 Matthew R. Green
|
.\" Copyright (c) 1996 Matthew R. Green
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
|
@ -46,8 +46,14 @@ system.
|
||||||
There are currently no monthly tasks.
|
There are currently no monthly tasks.
|
||||||
.Pp
|
.Pp
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
|
.Bl -tag -width /etc/monthly.local -compact
|
||||||
|
.It Pa /etc/monthly
|
||||||
|
monthly maintenance script
|
||||||
|
.It Pa /etc/monthly.conf
|
||||||
|
monthly maintenance configuration
|
||||||
|
.It Pa /etc/monthly.local
|
||||||
|
local site additions to
|
||||||
.Pa /etc/monthly
|
.Pa /etc/monthly
|
||||||
.Pa /etc/monthly.conf
|
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr daily.conf 5 ,
|
.Xr daily.conf 5 ,
|
||||||
.Xr weekly.conf 5
|
.Xr weekly.conf 5
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: weekly.conf.5,v 1.4 1999/03/17 20:19:49 garbled Exp $
|
.\" $NetBSD: weekly.conf.5,v 1.5 2000/01/10 17:03:49 ad Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1996 Matthew R. Green
|
.\" Copyright (c) 1996 Matthew R. Green
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
|
@ -55,8 +55,14 @@ which must also exist, in order to be rebuilt.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
|
.Bl -tag -width /etc/weekly.local -compact
|
||||||
|
.It Pa /etc/weekly
|
||||||
|
weekly maintenance script
|
||||||
|
.It Pa /etc/weekly.conf
|
||||||
|
weekly maintenance configuration
|
||||||
|
.It Pa /etc/weekly.local
|
||||||
|
local site additions to
|
||||||
.Pa /etc/weekly
|
.Pa /etc/weekly
|
||||||
.Pa /etc/weekly.conf
|
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr daily.conf 5 ,
|
.Xr daily.conf 5 ,
|
||||||
.Xr monthly.conf 5
|
.Xr monthly.conf 5
|
||||||
|
|
Loading…
Reference in New Issue