PR: 223998
Reported by: AJ Jordan <alex+freebsd@strugee.net>
Details
- Apply patch
- cd libexec/save-entropy && make
- man ./save-entropy.sh.8
- mandoc -T lint, igor and vale outputs clean
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 53499 Build 50390: arc lint + arc unit
Event Timeline
It is better to put in section 8 and named as save-entropy.8 as it's installed as /usr/libexec/save-entropy ?
I also suggested that trim the .sh suffix as it's installed as /usr/libexec/save-entropy.
libexec/save-entropy/save-entropy.sh.8 | ||
---|---|---|
2 ↗ | (On Diff #127049) | Now we use BSD-2-Clause |
libexec/save-entropy/save-entropy.sh.8 | ||
---|---|---|
2 ↗ | (On Diff #127049) | I wasn't aware of that. We have a mix of things in src regarding to license. |
libexec/save-entropy/save-entropy.sh.8 | ||
---|---|---|
2 ↗ | (On Diff #127049) | I think at least you need your name in the copyright announcement. For this kind of single file as a whole, I would say providing the verbatim is fine. Just be sure you copy-pasted from the correct template. |
libexec/save-entropy/save-entropy.sh.8 | ||
---|---|---|
2 ↗ | (On Diff #127049) |
Thanks. I change the SPDX ID. The text was already that from the 2-Clause BSD License as copied from https://opensource.org/license/bsd-2-clause/ |
Address feedback:
- Rewording
- Add full stops where needed
- Add Xr to rc.conf
- Use macro for standard exit status
Thanks very much!
BTW, as a doc committer, you don't actually need src committer's approval to commit to manual pages in the src repository.
Thank you!
BTW, as a doc committer, you don't actually need src committer's approval to commit to manual pages in the src repository.
I know, but it is always good to have an extra pair of eyes. The final version is much better than the first one.
It's probably worth mentioning that the script will not do anything in a jail (because it doesn't provide much value).
libexec/save-entropy/save-entropy.8 | ||
---|---|---|
33 | Nit: these are used for "startup" (rc(8)); boot-time entropy file (loader.conf(8) entropy_cache_load and entropy_cache_name) are only updated one time at startup and not touched by save-entropy. | |
42 | ||
43 | ||
53 | Minor nit: Technically entropy_dir is used by /etc/rc.d/random too, so we should probably say: Specify the directory for saved entropy files. |
libexec/save-entropy/save-entropy.8 | ||
---|---|---|
41 | Why "files" here when the previous line mentions a single file? (If "files" is correct as hinted later on, perhaps "Several files may be saved to in successive invocations; all are used...") |
libexec/save-entropy/save-entropy.8 | ||
---|---|---|
41 |
It should be "files" and the line above should probably say "to a specified location" instead. |
Thank you for all the feedback.
libexec/save-entropy/save-entropy.8 | ||
---|---|---|
53 | I also noted that this is a shared setting. |