SAVE-ENTROPY(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’Ύ 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 via cron(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 to 4096.
  • entropy_save_num β€” the number of entropy cache files to save. defaults to 8.

πŸ¦‹ 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