martti
d405da7f9d
Use "mktemp -d -t xxx" to create the temporary directories. This will use
...
TMPDIR environment variable if set, otherwise use /tmp. (misc/35544)
2007-06-06 13:30:47 +00:00
reed
cfbdfbc5a7
Remove unused references to "clean_uucp" variable. (Code was already
...
removed.)
Add rebuild_whatisdb weekly variable that defaults to NO.
This is for running makewhatis weekly.
This defaults to NO because it is not needed using just base sets/default
install which provide the whatis.db file(s).
2007-02-15 23:04:10 +00:00
christos
3353f7d077
goodbye uucp
2006-11-12 01:20:00 +00:00
lukem
6b00b0a32b
Run the "su -m nobody -c locate.updatedb" in a subshell with cd / first.
...
"nobody" doesn't have perms to $WEEKLYDIR which was the cwd previously,
and this may cause a warning to be issued by root's shell as part of the su.
2004-06-27 13:51:55 +00:00
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