opnsense-src/libexec/rc
Franco Fichtner 45e47679fe rc: also run NAME_setup on NAME_reload
Reload is used for service reconfiguration as well
and lacks a NAME_prepend-like mechanism so it makes
sense to extend the NAME_reload hook into this
action.

precmd may use configuration checks and blocks setup
from doing its designated work (e.g. nginx). In moving
the invoke of the setup script in front allows us to
provide custom scripts for config file generation and
fixing prior to precmd checking configuration integrity.

Also introduce _run_rc_setup to separate the launcher
from the main one. Let it run correctly in the case
of restart_precmd and block further execution as
would be the case in start due to the internal plumbing
of restart being split into calling stop and start
afterwards.

PR: https://reviews.freebsd.org/D36259
2025-07-09 10:05:48 +02:00
..
rc.d Revert "ntpd: Use the ntpd -u option in preference to the rc su plumbing" 2025-03-11 10:59:10 -07:00
tests rc/tests: Fix process flags checks using ps(1) 2025-05-13 14:41:32 +02:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netstart Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
network.subr rc: network.subr update consitency with older change (v6/v4 order) 2024-09-28 10:35:11 +00:00
pccard_ether Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.bsdextended Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.conf rc: Document rtadvd_flags 2025-01-14 14:14:24 +00:00
rc.firewall Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.initdiskless rc.initdiskless: Disable soft-updates in mdmfs (again) 2024-03-29 09:53:54 -04:00
rc.resume Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.shutdown Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.subr rc: also run NAME_setup on NAME_reload 2025-07-09 10:05:48 +02:00
rc.suspend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00