How to add a cron entry that persists system updates

Started by ssbarnea, September 07, 2019, 11:18:00 AM

Previous topic - Next topic
The current GUI implementation for cron does not allow a user to add a specific command to be run without creating a patch. Every time you will update the router your custom command will be lost.

How can I made this work persistently so I so not have to rerun all my configuration management scripts to repair the upgrade "damange".

Before someone asking about https://docs.opnsense.org/development/backend/autorun.html -- the answer is no, because I have a special script that runs every minute, refreshing an OTP token.

clone a file here  /usr/local/opnsense/service/conf/actions.d with [reload]-section