|
Revision tags: release/14.2.0, release/13.4.0 |
|
| #
7e1c014a |
| 10-Sep-2024 |
Simon J. Gerraty <sjg@FreeBSD.org> |
debug.sh take advantage of hooks.sh
Allow Debug{On,Off} to run associated hooks. This makes it feasible to collect extra debug info at runtime without needing to modify any potentially verified and
debug.sh take advantage of hooks.sh
Allow Debug{On,Off} to run associated hooks. This makes it feasible to collect extra debug info at runtime without needing to modify any potentially verified and hence immutable scripts.
Like debug.sh, hooks.sh is extremely handy and used extensively in many parts of Junos and its build environment. It is provided here in the hope that others may benefit.
We do not dot hooks.sh by default to reduce overhead, but it can but done from rc.conf et al using
$_HOOKS_SH . /libexec/hooks.sh
to avoid including more than once.
Reviewed by: stevek Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D46552
show more ...
|
| #
e9ac4169 |
| 15-Jul-2024 |
Warner Losh <imp@FreeBSD.org> |
Remove residual blank line at start of Makefile
This is a residual of the $FreeBSD$ removal.
MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
|
|
Revision tags: release/14.1.0, release/13.3.0 |
|
| #
aa3b7a2f |
| 09-Feb-2024 |
Simon J. Gerraty <sjg@FreeBSD.org> |
/etc/rc add trace debug and verify
Debugging boot issues can be helped by logging each rc.d script as it is run and being able to selectively enable/disable set -x debug.sh provides an elaborate fra
/etc/rc add trace debug and verify
Debugging boot issues can be helped by logging each rc.d script as it is run and being able to selectively enable/disable set -x debug.sh provides an elaborate framework for debugging shell scripts.
For secure systems, we want to be paranoid about what we read during boot.
dot() simply reads (.) arg file if it exists vdot() if mac_veriexec is active, ignore unverified files otherwise behaves much the same as dot() safe_dot() in safe_eval.sh allows reading an untrusted file; limiting the input to simple variable assignments.
In load_rc_config allow caller to provide an option to indicate how to handle its arg: -v use vdot() -s use sdot() which will try to use vdot() and fallback to safe_dot() The default is to read using dot()
rc_run_scripts() encapsulate the running of rc.d scripts so that we can easily call it more than twice.
We vdot local.rc.subr to pick up extensions (like run_rc_scripts_final) and overrides.
We also allow rc.subr.local or rc.conf to set rc_config_xtra eg (rc_config_xtra=XXX for historic compatibility)
rc use set -o verify around the reading in of rc.subr This has no effect if mac_veriexec is not active, but if it is; ensures rc.subr has not been tampered with.
Reviewed by: imp Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D43671
show more ...
|
|
Revision tags: release/14.0.0 |
|
| #
d0b2dbfa |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
|
Revision tags: release/13.2.0, release/12.4.0 |
|
| #
0b1adc42 |
| 09-Nov-2022 |
Baptiste Daroussin <bapt@FreeBSD.org> |
rc.sendmail: remove unused script
20 years ago the use of rc.sendmail script was dropped in favor of /etc/rc.d/sendmail, it is time to retire the script entirely now.
MFC after: 1 week
|
| #
e7437ae9 |
| 07-Jul-2022 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
rc: Start testing the rc(8) framework (beginning with *_oomprotect)
This change adds 2 tests to make sure that the *_oomprotect variable sets the protection against OOM killer properly within rc(8)
rc: Start testing the rc(8) framework (beginning with *_oomprotect)
This change adds 2 tests to make sure that the *_oomprotect variable sets the protection against OOM killer properly within rc(8) scripts.
This is also adding the first tests for the rc(8) framework. More tests will be added as we go.
PR: 256148 Approved by: des MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35745
show more ...
|
|
Revision tags: release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0 |
|
| #
fdf46c24 |
| 25-Mar-2020 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Revert r359294 per manu's request
It breaks etcupdate
Reported by: cy
|
| #
77f0f1df |
| 25-Mar-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
pkgbase: Stop threating rc files as config files
rc scripts arent configuration files so use FILES instead of CONFS. While here put rc scripts into related package (sendmail in the FreeBSD-sendmail
pkgbase: Stop threating rc files as config files
rc scripts arent configuration files so use FILES instead of CONFS. While here put rc scripts into related package (sendmail in the FreeBSD-sendmail package, wpa_supplicant in the FreeBSD-wpa etc ...)
Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D24177
show more ...
|
|
Revision tags: release/12.1.0 |
|
| #
f993ed2f |
| 09-Sep-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r351732 through r352104.
|
| #
8c15be73 |
| 05-Sep-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
pkgbase: Move rc scripts and related files to their own packages
It doesn't need to be in runtime and might help people who want to experiment with other rc system or don't use one (like in small em
pkgbase: Move rc scripts and related files to their own packages
It doesn't need to be in runtime and might help people who want to experiment with other rc system or don't use one (like in small embedded mfsroot).
Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21499
show more ...
|
|
Revision tags: release/11.3.0 |
|
| #
0269ae4c |
| 06-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @348740
Sponsored by: The FreeBSD Foundation
|
| #
42438321 |
| 22-May-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
pkgbase: Move rc.sendmail to libexec/rc
Reviewed by: bapt
|
| #
f4022639 |
| 22-May-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
pkgbase: Move rc.bsdextended to libexec/rc
Reviewed by: bapt
|
| #
f0f0053a |
| 22-May-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
pkgbase: Move rc.firewall to libexec/rc
Put it with all the other rc files
Reviewed by: bapt
|
|
Revision tags: release/12.0.0 |
|
| #
c6879c6c |
| 23-Oct-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r339015 through r339669.
|
| #
c35b07d1 |
| 18-Oct-2018 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
While preparing to move init(8) to its own package as indicated in r339413, a current pkgbase update problem came up. For users testing pkgbase at the moment there is no (automatic) way to pick up n
While preparing to move init(8) to its own package as indicated in r339413, a current pkgbase update problem came up. For users testing pkgbase at the moment there is no (automatic) way to pick up new base packages (yet). As a result rather than also moving init(8) to its own package, back out the part of the change in r339413 that moved rc* to its own package and defer creating new packages until the infrastructure is in place to handle these cases. Both init and rc* are considered too problematic to be lost by early adaptors at this stage.
Discussed with: brd Reviewed by: brd Approved by: re (gjb)
show more ...
|
| #
0696600c |
| 17-Oct-2018 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
Move the rc framework out of sbin/init into libexec/rc.
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update bec
Move the rc framework out of sbin/init into libexec/rc.
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update because an rc script was touched. (a follow-up commit will make init its own package) * having rc in its own place will allow more easy replacement of the rc framework with alternatives, such as openrc.
Discussed with: brd (during BSDCam), kmoore Requested by: cem, bz PR: 231522 Approved by: re (gjb)
show more ...
|