summaryrefslogtreecommitdiff
path: root/etc/daily
AgeCommit message (Collapse)Author
2013-01-06backout atactl check; I had warned that this would try a lot of codeTheo de Raadt
paths which are rarely tried. Problem reported by a few on the list.
2012-12-11Add a SMART check using atactl(8) against disks that support and haveAntoine Jacoutot
SMART enabled. Committing now so that it gets broader testing. Man page bits will be added once we are confident there is no side effect and this can stay. inputs from sthen@ halex@ weerd@ ok deraadt@
2012-02-11Fix previous fix for /altroot processing. Should now work for bothKenneth R Westerback
duid and device entries in fstab. As a bonus make commented out lines in fstab in-eligable for altroot detection. ok halex@ deraadt@
2012-02-08Let /altroot work with a duid-based fstab.Kenneth R Westerback
Reported by & fix tested by Dave Anderson. Thanks! ok deraadt@
2011-12-06closing fd 0-2 is indeed bad style and potentially dangerous, as pointedAlexander Hall
out by Arne Becker, who also supplied the diff, thanks! ok schwarze@ agreed by many
2011-04-23Even though SUIDSKIP used to be a mere shell variable, it was propagatedIngo Schwarze
to the old /etc/security script because daily sourced it. Now we fork and exec, so SUIDSKIP must be promoted to the environment. Problem reported, fix tested and ok weerd@.
2011-04-17Switch from the old shell script /etc/securityIngo Schwarze
to the new Perl script /usr/libexec/security. The new script was tested by sthen@ and ajacoutot@. Committing now due to repeated prodding from deraadt@. In case problems show up, they will be fixed in tree.
2011-04-15Silence errors in the temp dir cleanup processAlexander Hall
ok phessler@ sthen@
2010-09-22Kill msgs. Noone uses it, and it has a longjmp in it.Theo de Raadt
Lots of agreement.
2010-07-25handle portslock. reminded by antoine@Marc Espie
2009-05-26Three rdist log file name improvements on one single line:Ingo Schwarze
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@
2009-05-25polish comments, no functional change:Ingo Schwarze
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@
2009-05-24Before dd'ing raw partitions around, do stricter sanity checking:Ingo Schwarze
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
2009-05-21skip the ROOTBACKUP when the destination disk device is not configured;Ingo Schwarze
suggested, tweaked and ok by guenther@
2009-05-18handle PATH in the same way as in monthly(8) and weekly(8),Ingo Schwarze
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@
2009-05-17move kern.version and uptime back to the top of the outputIngo Schwarze
by moving it down to the bottom of the code; "I definitely like this" ajacoutot@
2009-05-11New variable VERBOSESTATUS (=1 by default).Ingo Schwarze
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@
2009-05-10avoid unnecessary changes of the outputIngo Schwarze
in order not to annoy parser scripts and their owners (like henning@)
2009-05-09make weekly and monthly silent by defaultIngo Schwarze
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)
2009-05-03remove dead code and the associated documentationIngo Schwarze
while here, remove the misleading shbang and an unused variable and add the missing cross reference to ac(8) ok sthen@ jmc@
2006-10-26Force umask to 022 so we don't heritate 077 from root's crontab commandAntoine Jacoutot
(output logs are still umask 077) "i think this is right" deraadt@
2006-10-04make code look betterTheo de Raadt
2006-10-04Exit when asked to. OK by deraadt, spotted by lumpy.Hugh Graham
2005-12-06Remove fdescfsPedro Martelletto
2005-11-24Remove kernfs, okay deraadt@.Pedro Martelletto
2005-09-29ok, add uptime after kernel versionTheo de Raadt
2005-03-17Don't rmdir .ICE-unix from /tmp or /var/tmp either. OK deraadt@Todd C. Miller
2005-03-16Don't rmdir vi.recover or .X11-unix from /tmp or /var/tmp. OK deraadt@Todd C. Miller
2004-12-07Use df to verify that we are not booted from the altboot before doingTodd C. Miller
the / -> /altroot copy. OK deraadt@
2004-11-15add kern.version to daily report. ok deraadt@Nick Holland
2003-07-28remove check for /etc/news.expire;Jason McIntyre
ok millert@
2003-06-30some more extra mktemp randomness; millert@ okAnil Madhavapeddy
2003-06-03by means of utilising -f avoid some warnings when rotating accounting files; ↵Michael Shalayeff
millert@ ok
2003-03-28- no more /var/ssyslog (unused)Jason McIntyre
- 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@
2003-02-08When creating > 1 files with mktemp(1), make sure that if the creationPeter Valchev
of the n'th (n>1) file fails, the previous ones get removed before exit(1) Idea by jason; ok millert deraadt
2002-12-07Use `hostname` not `hostname -s` in subject for consistency withTodd C. Miller
daily, weekly, and monthly. Closes PR 3017.
2002-09-12have df only display statistics about local filesystems (-l flag)Dan Harnett
ok millert@
2001-11-19zap trailing spaces and tabsTheo de Raadt
2001-10-29Change when calendar(1) is such so that it is after mailq runs.Todd C. Miller
That way we avoid a flurry of transient calendar mail in the mailq.
2001-10-24Be anal about ssh and X11 hooks.Marc Espie
2001-09-09the first part of uucp going away. It will become a packageTheo de Raadt
2001-03-06Add -n to the netstat invocation. Faster running, less chance of being ↵Niklas Hallqvist
spoofed, no unneeded dial-on-demands
2001-01-04Correctly check empty mailq, closes PR 1602 (cjclark@alum.mit.edu)Angelos D. Keromytis
2000-05-26pipe output from /etc/security to a temp file and then check thatMarco S Hyman
output was created before sending off a mail message to root. This suppresses an empty mail message and a warning appended to the end of the daily status report. OK millert@
2000-05-26Conform to the test(1) man page: use -L instead of -h when testing forAaron Campbell
symbolic links (the -h flag is for compatibility only); millert@ ok
2000-04-29Prune /tmp traversal at .X11-unixTodd C. Miller
Since /tmp might be a link to /var/tmp, prune at ssh-* or .X11-unix like the find on /tmp does.
2000-04-28use netstat -iv, not -i, to avoid truncation of ipv6 address. ok by deraadtJun-ichiro itojun Hagino
2000-04-24fix per pr1192; also == "xx" -> ~ /xx/, same thoughtTodd T. Fries
1999-03-16run pruning find with -x, to avoid /tmp based mountpoint pruningTheo de Raadt
1998-11-29no need for Subject: line, crontab does itTheo de Raadt