freebsd-src/libexec
Franco Fichtner 11333dd580 rc: improve NAME_setup handling
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.

Differential-Revsiion: https://reviews.freebsd.org/D36259
Signed-off-by: Franco Fichtner <franco@opnsense.org>
Reviewed by: imp, oshogbo
Pull Request: https://github.com/freebsd/freebsd-src/pull/1258
2024-05-29 11:23:46 -06:00
..
atf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
atrun at cron file is now in /etc/cron.d 2024-05-09 22:34:06 -06:00
blacklistd-helper Track upstream project rename in contrib/blocklistd 2023-11-03 16:53:04 -04:00
bootpd bootpd(8): Fix a typo in a source code comment 2024-01-22 21:46:31 +01:00
comsat Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
dma dma.conf: Fix typo 2024-03-27 10:37:22 -04:00
fingerd Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
flua flua: add fbsd module 2023-09-27 16:00:00 +02:00
ftpd ftpd: stop using -g flag for /bin/ls 2024-05-21 22:50:14 +00:00
getty libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
hyperv Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
kgdb crashinfo: Print stack traces for all on-CPU threads 2024-01-15 16:36:40 -05:00
mail.local libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
makewhatis.local Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
mknetid libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
nuageinit fix (nuageinit): SSH keys are not handled in metadata but in userdata 2024-05-21 16:52:42 +02:00
phttpget Remove remnants of portsnap(8) 2024-04-30 22:44:34 +09:00
pppoed Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rbootd libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
rc rc: improve NAME_setup handling 2024-05-29 11:23:46 -06:00
revnetgroup Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
rpc.rquotad libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
rpc.rstatd libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
rpc.rusersd Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
rpc.rwalld Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc.sprayd Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
rtld-elf Revert "rtld: Add arm64 variant pcs tests" 2024-05-17 11:19:24 +00:00
rtld-elf32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
save-entropy save-entropy: Add manual page 2023-09-18 13:33:59 +02:00
smrsh libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
talkd libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
tcpd Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tftp-proxy Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tftpd tftpd: silence gcc overflow warnings 2024-05-10 23:16:26 +02:00
ulog-helper Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ypxfr Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
Makefile nuageinit: add basic support for cloudinit. 2024-03-15 09:22:16 +01:00
Makefile.inc libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00