DAILY(5)
π
DAILY(5) β ok bestie, this is the File Formats Manual page for daily and daily.conf
So likeβ¦ every night, NetBSD runs a lil maintenance shift while you're asleep, and this page is the group chat rules for what goes down. It's giving "chores but make it cron." Let's get into it π
β¨ NAME β¨
daily, daily.conf β daily maintenance, aka the nightly glow-up routine for your system π§ββοΈ
π DESCRIPTION π
Okay so the /etc/daily script is run, by default, every single night on a NetBSD system. Like clockwork, no cap. And the /etc/daily.conf file is the one that specifies which of the standard daily services are performed β it's the vibe-check file, basically π
The variables described below can be set to "YES" or "NO" in the /etc/daily.conf file. Most default to "YES", but not all β so check the /etc/defaults/daily.conf file if you are in doubt. π
β οΈ And listen β you should never edit /etc/defaults/daily.conf directly, because it is often replaced during system upgrades. That's a canon event you cannot undo, bestie. Don't do it. π
π«Ά the YES/NO toggles (the main character list)
find_coreβ This runsfind(1)over the entire local filesystem, looking for core files. Treasure hunt but for crashes πrun_msgsβ This runsmsgs(1)with the-cargument.expire_newsβ This runs the/etc/expire.newsscript.purge_accountingβ This ages accounting files in/var/account.run_calendarβ This runscalendar(1)with the-aargument.check_disksβ This uses thedf(1)anddump(8)to give disk status, and also reports failedraid(4)components. Disk drama report, delivered fresh β¨show_remote_fsβ Incheck_disks, show remote file systems, which are not reported on by default.check_mailqβ This runsmailq(1).check_networkβ This runsnetstat(1)with the-iargument, and also checks therwhod(8)database, and runsruptime(1)if there are hosts in/var/rwho.full_netstatβ By default,check_networkoutputs a summarized version of thenetstat(1)report. If a full version of the output run with the-invoptions is desired, set this variable. Want the whole lore dump instead of the tl;dr? This is your girl πrun_fsckβ This runsfsck(8)with the-noption.run_rdistβ This runsrdist(1)with/etc/Distfile.run_securityβ This runs the/etc/securityscript looking for possible security problems with the system. Bestie patrol π΅οΈββοΈrun_skeyauditβ Runs theskeyaudit(1)program to check the S/Key database and informs users of S/Keys that are about to expire.run_makemandbβ If the/etc/man.conffile exists, runs themakemandb(8)utility to update theman.dbdatabase for use byapropos(1).fetch_pkg_vulnerabilitiesβ Refreshes the local database of package vulnerabilities. See the settings insecurity.conf(5)for details on the actual package checks.
π οΈ the "actually, let me tweak that" variables
The variables described below can be set to modify the tests:
find_core_ignore_fstypesβ Lists filesystem types to ignore during thefind_corephase. Prefixing the type with a!inverts the match. For example,procfs !localwill ignoreprocfstype filesystems and filesystems that are notlocal. The!is giving reverse uno card πfind_core_ignore_pathsβ Lists paths to ignore during thefind_corephase. For example,/exportwill not descend into any directories under the/exporthierarchy. This, on a file server, allows to skip user data while still scanning system files. Respect the boundaries π§run_fsck_flagsβ Extra options to be passed tofsck(8)ifrun_fsckis enabled.send_empty_securityβ If set, the report generated by therun_securityphase will always be sent, even if it is empty. Like texting "nothing to report" just so they know you're alive π«‘pkgdb_dirβ DEPRECATED. Please setPKGDB_DIRinpkg_install.conf(5)instead. π
If defined, points to the location of the packages database. Defaults to /usr/pkg/pkgdb.
π FILES π
/etc/dailyβ daily maintenance script/etc/daily.confβ daily maintenance configuration/etc/defaults/daily.confβ default settings, overridden by/etc/daily.conf/etc/daily.localβ local site additions to/etc/daily
π₯ SEE ALSO π₯
monthly(5), security.conf(5), weekly(5)
(it's a whole family, iykyk π)
πΈ HISTORY πΈ
The /etc/daily.conf file appeared in NetBSD 1.3. She's an icon, she's a legend, and she is the moment β
and that's the whole page, bestie β slay π«Ά
Cute lil sign-off: this one's from Debian, dated December 2, 2020 β the manual name up top was DAILY(5), and you officially made it to the end. ilysm, go run your dailies ππ
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 1996 Matthew R. Green
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms