Todo #15141
closedFeedback on Development — Executing Commands at Boot
100%
Description
Page: https://docs.netgate.com/pfsense/en/latest/development/boot-commands.html
Feedback:
https://forum.netgate.com/topic/185330/executing-commands-at-boot
Based on some testing I've been doing I've found that scripts placed in /usr/local/etc/rc.d get executed during boot but also during certain other events, such as an OpenVPN interface link up event. I'd like to recommend updating the documentation regarding shell scripts to reflect this. Ideally it would be nice to have a comprehensive list of events that trigger the scripts but unfortunately I don't have enough knowledge of backend processes within pfSense to be able to provide a comprehensive list. If earlyshellcmd and/or shellcmd also get triggered on occasions other than boot it would be nice for the documentation to reflect this as well.
Updated by Jim Pingle over 1 year ago
- Status changed from New to Closed
- Assignee set to Jim Pingle
- % Done changed from 0 to 100
I added a bit of text there explaining those scripts also get run at other times, and listed examples of those times.
https://gitlab.netgate.com/docs/pfSense-docs/-/commit/d3be0c6e9bcc1cc404c046f7ac057b30d697f953