Commit Graph

19 Commits

Author SHA1 Message Date
kim ed816845e6 Avoid the output "Running xxx.local" if the "xxx.local" script
does not produce any output.  This matches what /etc/security
already does with /etc/security.local output.
2004-04-09 17:35:21 +00:00
jmmv 3c8a1444d9 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.
2004-04-02 13:13:47 +00:00
lukem 684e89f355 use mktemp(1) to create temporary directories, and ensure that cleanup traps
are setup asap.
2001-06-18 10:54:02 +00:00
kim e26a7ce86b Setting rebuild_locatedb=NO should not tell you it didn't rebuild the db
because there is no /var/db/locate.database; it should be quiet.

Unified the use of `echo ""'.
2000-10-15 17:32:38 +00:00
lukem 0c70e530af use ${foo##*/} instead of `basename $foo`. as suggested (with minor variation)
by Toru Nishimura <nisimura@itc.aist-nara.ac.jp>
2000-10-07 07:36:56 +00:00
ad 645ee40728 - Make /etc/daily run /etc/daily.local if it exists. Make similar change for
weekly and monthly scripts.
- Update FILES section in manpages.
2000-01-10 17:03:49 +00:00
kleink 357a0baaf8 Get rid of old-style chown operands. 1999-04-23 08:20:28 +00:00
lukem d1f7e40ebd * daily/weekly/monthly:
- change to always output a valid To: and Subject: line.
    - To: recipient obtained from $MAILTO (defaults to root).
    - add date to Subject: line. closes [bin/4526] from Giles Lean
      <giles@nemeton.com.au>
* daily: explicitly print 'Nothing to report' if /etc/security didn't
  report anything.
* crontab: pass output of scripts through sendmail -t instead of
1998-09-15 05:06:30 +00:00
mycroft bd8157b7d3 Format police. 1998-07-16 05:21:56 +00:00
lukem 8f59ce8e35 include rc.subr and use appropriately 1998-01-26 12:02:43 +00:00
lukem d5b4ca3bbf use /usr/libexec/uucp/clean.weekly instead of /usr/lib/uucp/clean.weekly [misc/4357], and use su user -c command instead of echo command | su user 1997-10-27 04:11:40 +00:00
mycroft 814cb67087 Minor cleanup. 1997-03-10 09:45:58 +00:00
mikel ef538c3176 cleanup Lite-1 merge 1997-02-15 10:02:07 +00:00
mrg 016b324a94 add configuration file for daily, weekly, montly, as
daily.conf, weekly.conf and montly.conf.  the file
allows each action taken by all scripts to be turned
on or off.
1997-01-05 11:21:09 +00:00
thorpej ecfa4355a6 RCS id police. 1996-05-08 17:19:17 +00:00
cgd 4c881187a6 don't rebuild locate.database if it's not there, etc. 1994-02-21 06:36:42 +00:00
cgd 640e7bf41e arrange for all log rotations to be handled by /usr/bin/newsyslog 1993-05-21 14:45:16 +00:00
cgd 51bed6780a updated for current setup, and to compress logs 1993-04-02 08:07:11 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00