Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
How to add a cron entry that persists system updates
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to add a cron entry that persists system updates (Read 2120 times)
ssbarnea
Newbie
Posts: 24
Karma: 0
How to add a cron entry that persists system updates
«
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.
Logged
marcri
Jr. Member
Posts: 60
Karma: 5
Re: How to add a cron entry that persists system updates
«
Reply #1 on:
September 07, 2019, 12:55:00 pm »
clone a file here /usr/local/opnsense/service/conf/actions.d with [reload]-section
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: How to add a cron entry that persists system updates
«
Reply #2 on:
September 07, 2019, 01:58:12 pm »
The key is that it needs a description
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
How to add a cron entry that persists system updates