Page MenuHomeFreeBSD

rc: also run NAME_setup on NAME_reload
Needs ReviewPublic

Authored by franco_opnsense.org on Aug 19 2022, 6:24 AM.

Details

Reviewers
oshogbo
0mp
Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47872
Build 44759: arc lint + arc unit

Event Timeline

rc: extend NAME_setup, redefining commands escapes all structure

change setup/precmd order so when precmd checks config file it won't fail

Sorry for so late review.
Should we also add it to rc.subr(8) man page?