OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: ssbarnea on September 07, 2019, 11:18:00 AM

Title: How to add a cron entry that persists system updates
Post by: ssbarnea on September 07, 2019, 11:18:00 AM
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.
Title: Re: How to add a cron entry that persists system updates
Post by: marcri on September 07, 2019, 12:55:00 PM
clone a file here  /usr/local/opnsense/service/conf/actions.d with [reload]-section
Title: Re: How to add a cron entry that persists system updates
Post by: mimugmail on September 07, 2019, 01:58:12 PM
The key is that it needs a description