espie
f953972807
handle portslock. reminded by antoine@
14 years ago
schwarze
45b8893465
Three rdist log file name improvements on one single line:
1) replace +%e by +%d, unescaped blanks don't work at all in file names
2) replace +%b by +%m to make log files sort better by month
3) replace the home-grown +%Y.%m.%d by the standard +%F (= +%Y-%m-%d)
from Tim van der Molen <tbvdm at xs4all dot nl>, thanks!
ok okan@
16 years ago
schwarze
21b33a056e
polish comments, no functional change:
1) advertise *.local and next_part near the top of the three scripts
2) daily: mention smtpd(8) mailq behaviour (like for sendmail, postfix, exim)
3) weekly: drop a comment trivially rehashing the next two lines of code
documenting next_part in the scripts was suggested by jmc@
ok sthen@ okan@ halex@; "i won't object" ajacoutot@
16 years ago
schwarze
56cfb71043
Before dd'ing raw partitions around, do stricter sanity checking:
Do not attempt to copy a larger partition onto a smaller one.
Backup of non-ffs root partitions was never supported, so don't even try.
(Both of the above suggested by guenther@).
Also add error messages in case ROOTBACKUP is switched on but severely
misconfigured - those were silently ignored in the past:
/altroot not defined or wrong type or on the same device as root.
otto@ agrees that checking the sizes makes sense
16 years ago
schwarze
ca1e088d9a
skip the ROOTBACKUP when the destination disk device is not configured;
suggested, tweaked and ok by guenther@
16 years ago
schwarze
4cb2031961
handle PATH in the same way as in monthly(8) and weekly(8),
i.e. rely on the PATH set up in the root crontab(5)
in case /usr/local/bin is needed, daily.local is a logical place to append it
suggested by ajacoutot@; "i like this" okan@; feedback jmc@ deraadt@;
"i don't strongly object" sthen@
16 years ago
schwarze
2783684922
move kern.version and uptime back to the top of the output
by moving it down to the bottom of the code;
"I definitely like this" ajacoutot@
16 years ago
schwarze
c35158aa7b
New variable VERBOSESTATUS (=1 by default).
When set to 0, daily(8) won't send mail unless there is something to report.
Using feedback from kettenis@ henning@ jmc@
OK sthen@ jmc@
16 years ago
schwarze
d9009d8e54
avoid unnecessary changes of the output
in order not to annoy parser scripts and their owners (like henning@)
16 years ago
schwarze
25d7042a0b
make weekly and monthly silent by default
add the same infrastructure to daily; silencing daily needs another step
discussed with ajacoutot@ okan@ todd@ sthen@ deraadt@ jmc@
"immediately commit" deraadt@ (without seeing the final diff)
16 years ago
schwarze
e858e49540
remove dead code and the associated documentation
while here, remove the misleading shbang and an unused variable
and add the missing cross reference to ac(8)
ok sthen@ jmc@
16 years ago
ajacoutot
a7f30172a7
Force umask to 022 so we don't heritate 077 from root's crontab command
(output logs are still umask 077)
"i think this is right" deraadt@
18 years ago
deraadt
3649a55633
make code look better
18 years ago
hugh
bfa0f6647a
Exit when asked to. OK by deraadt, spotted by lumpy.
18 years ago
pedro
032da4d8b3
Remove fdescfs
19 years ago
pedro
d2ed503aa1
Remove kernfs, okay deraadt@.
19 years ago
deraadt
4463d1f779
ok, add uptime after kernel version
19 years ago
millert
8a3fb5a72d
Don't rmdir .ICE-unix from /tmp or /var/tmp either. OK deraadt@
20 years ago
millert
2f3df13003
Don't rmdir vi.recover or .X11-unix from /tmp or /var/tmp. OK deraadt@
20 years ago
millert
5947d351eb
Use df to verify that we are not booted from the altboot before doing
the / -> /altroot copy. OK deraadt@
20 years ago
nick
86d5e7d5f0
add kern.version to daily report. ok deraadt@
20 years ago
jmc
c5f398ceac
remove check for /etc/news.expire;
ok millert@
22 years ago
avsm
ef01e76670
some more extra mktemp randomness; millert@ ok
22 years ago
mickey
06f0e69e20
by means of utilising -f avoid some warnings when rotating accounting files; millert@ ok
22 years ago
jmc
9c9982ecc9
- no more /var/ssyslog (unused)
- no more /var/spool/lpd (lpd uses /var/spool/output)
- no more /var/preserve (old vi directory)
- update docs to reflect this
help with systrace provos@
help and ok millert@
22 years ago
pvalchev
7eb0a44bce
When creating > 1 files with mktemp(1), make sure that if the creation
of the n'th (n>1) file fails, the previous ones get removed before exit(1)
Idea by jason; ok millert deraadt
22 years ago
millert
27938991c6
Use `hostname` not `hostname -s` in subject for consistency with
daily, weekly, and monthly. Closes PR 3017.
22 years ago
danh
2bb98291da
have df only display statistics about local filesystems (-l flag)
ok millert@
22 years ago
deraadt
d8ad086ce4
zap trailing spaces and tabs
23 years ago
millert
94110695a6
Change when calendar(1) is such so that it is after mailq runs.
That way we avoid a flurry of transient calendar mail in the mailq.
23 years ago
espie
9384ec405c
Be anal about ssh and X11 hooks.
23 years ago
deraadt
cefcd164b2
the first part of uucp going away. It will become a package
23 years ago
niklas
d83299bfc4
Add -n to the netstat invocation. Faster running, less chance of being spoofed, no unneeded dial-on-demands
24 years ago
angelos
65a3864266
Correctly check empty mailq, closes PR 1602 (cjclark@alum.mit.edu)
24 years ago
marc
202ca5cf81
pipe output from /etc/security to a temp file and then check that
25 years ago
aaron
7fb2a3f447
Conform to the test(1) man page: use -L instead of -h when testing for
symbolic links (the -h flag is for compatibility only); millert@ ok
25 years ago
millert
4162a5f0f0
Prune /tmp traversal at .X11-unix
Since /tmp might be a link to /var/tmp, prune at ssh-* or .X11-unix
like the find on /tmp does.
25 years ago
itojun
2ad1363310
use netstat -iv, not -i, to avoid truncation of ipv6 address. ok by deraadt
25 years ago
todd
bc27b3b955
fix per pr1192; also == "xx" -> ~ /xx/, same thought
25 years ago
deraadt
42c3846e4f
run pruning find with -x, to avoid /tmp based mountpoint pruning
26 years ago
deraadt
bf5f67be75
no need for Subject: line, crontab does it
26 years ago
downsj
444833e1f4
Only run msgs -c if /var/msgs exists and is not a symlink.
26 years ago
millert
34b5a6ea60
Don't prune dirs in /var/tmp on first pass; problem noted by m4@umn.edu
27 years ago
deraadt
109f02d2ff
do not delete files like that, geez
27 years ago
millert
9a58a2fd16
Don't remove files in /tmp/ssh-*
27 years ago
mickey
337266a573
fix root backup
27 years ago
deraadt
125803585e
indent
28 years ago
pierre
7c7a16dee0
run calendar in the background
28 years ago
deraadt
43ff156daa
1 fix from enami@ba2.so-net.or.jp
28 years ago
millert
ad8ea0fcfd
Add option to turn off calendar via env variables settable via cron.
Ie: ``CALENDAR=0'' will turn it off which is useful for machines with
no local users that do not run YP.
28 years ago