SAVE-ENTROPY(8)
πΎ save-entropy(8) β the group-chat edition π
okay so bestie, picture this: it's section 8 of the system manager's manual, and we're talking about the little script that tucks entropy away so your system has something to sip on at boot. iconic behaviour, honestly.
β¨ NAME β¨
save-entropy β saving bits of entropy so /dev/random gets fed at startup πΌβ¨
π SYNOPSIS π
save-entropy
that's it. no flags, no drama. she takes zero arguments and she serves. periodt.
πΈ DESCRIPTION πΈ
so save-entropy is the command that takes entropy data from /dev/random and saves it into files in a specified output location. those saved files get used at startup to give /dev/random some extra entropy to work with β like leaving snacks out for your future self, lowkey genius π«Ά
the output file will be different in every invocation until the maximum number of different files is reached (see entropy_save_num for the details, bestie β she's the one who keeps count). by default this script is invoked via cron(8) roughly every eleven minutes. every eleven minutes! she's committed ππ
heads up: this command does nothing if executed inside a jail(8). jails get no entropy-saving slay, that's just the rules π
three variables in /etc/rc.conf regulate how this script behaves, and you need to know them:
entropy_dirβ specifies the directory for the saved entropy files. defaults to/var/db/entropy. if you set it to"NO"it disables caching entropy viacron(8). this setting is shared with/etc/rc.d/random, so like, don't be surprised when they both react πentropy_save_szβ the size of the entropy cache files. defaults to4096.entropy_save_numβ the number of entropy cache files to save. defaults to8.
π¦ FILES π¦
/etc/rc.conf
(the main character config file, obviously π)
π EXIT STATUS π
save-entropy exits 0 on success, and >0 if an error occurs. and ngl, errors don't just vanish β they get recorded in the system log. receipts are kept, fr fr π
π SEE ALSO π
go read them, iykyk π
β HISTORY β
the save-entropy command first appeared in FreeBSD 5.0. a legend from the jump π§β¨
π AUTHORS π
the save-entropy command was originally written by Doug Barton <dougb@FreeBSD.org>. and this manual page was written by Fernando Apesteguia <fernape@FreeBSD.org>. absolute icons, both of them π«Άπ
and that's the whole page, bestie π this one's from the Debian crew β dated September 18, 2023 β and it lives in section 8, the system manager's manual. go save some entropy, you deserve it π β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- π the page's license: BSD-2-Clause
- Copyright (c) 2023 Fernando Apesteguia <fernando.apesteguia@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms