[Midnightbsd-cvs] [MidnightBSD/src] c09e53: rc: add ${name}_setup script support
Lucas Holt
noreply at github.com
Sat Dec 9 14:05:20 EST 2023
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: c09e53c2f77d903b293b1e8a05c8ace3b2c71bcb
https://github.com/MidnightBSD/src/commit/c09e53c2f77d903b293b1e8a05c8ace3b2c71bcb
Author: Franco Fichtner <franco at opnsense.org>
Date: 2023-12-09 (Sat, 09 Dec 2023)
Changed paths:
M libexec/rc/rc.subr
Log Message:
-----------
rc: add ${name}_setup script support
Run a service-based setup script before running the start command.
Useful for automatic configuration file generation.
Reviewed by: https://reviews.freebsd.org/D36006
(cherry picked from commit c9be47b34dd847da1d4ab0feee4a6100b2c5ea0d)
Commit: 24c2384cdc9443bc4494dfca8a4154c8e4ca1eb0
https://github.com/MidnightBSD/src/commit/24c2384cdc9443bc4494dfca8a4154c8e4ca1eb0
Author: Eugene Grosbein <eugen at FreeBSD.org>
Date: 2023-12-09 (Sat, 09 Dec 2023)
Changed paths:
M libexec/rc/rc.subr
M share/man/man5/rc.conf.5
Log Message:
-----------
rc.conf(5): add <service>_umask to run the service using this value
None of tools working with login classes change umask(1)
and we had no ways to specify non-default umask for a service
not touching its startup script. This change makes in possible.
Some file-sharing services that create new files may benefit from it.
Differential: https://reviews.freebsd.org/D36309
(cherry picked from commit 160a2f2cdda806e104c0d3194bfb84b208ad1ae8)
Compare: https://github.com/MidnightBSD/src/compare/4372c4c0f138...24c2384cdc94
More information about the Midnightbsd-cvs
mailing list