You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Primarily) in debugging situations, there are times when you want to install some script to be run on every boot.
Typical scenarios:
A hardware engineer want some component to be automatically placed in a test mode
We want to start a custom data collector to help debug a transient issue
Up to this point, this has been solved by building custom images, but it would be great if this could be added to production images as well.
Additional Information
IMPORTANT: We do not want any code to execute that can't be traced back to the startup-config. This was the primary shortcoming of #461, which led to this proposal.
Example usage:
No scripts are executed unless the service is enabled:
admin@infix-00-00-00:/> configure
admin@infix-00-00-00:/config/> edit rc.d
admin@infix-00-00-00:/config/rc.d/> set enabled
These rc.d scripts would be run at the same point as /etc/rc.local on systems with Finit.
General Information
Anyone can help out by sponsoring development of new features or contributing pull requests.
Please use this issue for discussions related to the feature.
CCB thinks most of this might already be covered by containers. But possibly interesting on builds without containers and for scripts that need to run very early.
Update: We should consider generalizing this so that users can inject files at any path. Then a user can drop in extra config snippets to deamons with daemon.d/ support. E.g., to enable FRR debugging, enable some dnsmasq option, or similar.
Activity
troglobit commentedon Oct 1, 2024
CCB thinks most of this might already be covered by containers. But possibly interesting on builds without containers and for scripts that need to run very early.
wkz commentedon Dec 5, 2024
Update: We should consider generalizing this so that users can inject files at any path. Then a user can drop in extra config snippets to deamons with
daemon.d/support. E.g., to enable FRR debugging, enable some dnsmasq option, or similar.confd: add /system/advanced for rc.d scripts and daemon defaults
confd: add /system/advanced for rc.d scripts and daemon defaults