Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
[SOLVED] Help with Cron jobs sub menu
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Help with Cron jobs sub menu (Read 4776 times)
SecAficionado
Newbie
Posts: 42
Karma: 4
[SOLVED] Help with Cron jobs sub menu
«
on:
January 27, 2019, 11:30:10 pm »
Hi there,
I want to add an extra option to the list of commands in the cron jobs menu (System:Settings:Cron), but I need some help. I'll refer to paths in the Github pages (
https://github.com/opnsense/core
).
I think that the page is generated by the code in
src/opnsense/mvc/app/[controllers|models|views]/OPNsense/Cron
, but I can't figure out how the actual sub menu of commands is generated, so I can add the new task to be scheduled (pls see attachment).
I'm looking for it in an XML file, but I can't find it. My understanding of the process may be wrong. I'm just now dabbling into the GUI framework and structure.
Thanks in advance for your help!
«
Last Edit: February 01, 2019, 09:33:38 am by franco
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Help with Cron jobs sub menu
«
Reply #1 on:
January 30, 2019, 12:55:47 pm »
Wrong path... see
https://docs.opnsense.org/development/backend/configd.html
Create an actions_myactions.conf file and in the action also add the "description:" tag. As soon as this is done you'll have the entry in the GUI after issuing:
# service configd restart
Cheers,
Franco
Logged
SecAficionado
Newbie
Posts: 42
Karma: 4
Re: Help with Cron jobs sub menu
«
Reply #2 on:
February 01, 2019, 03:24:40 am »
Thank you, that did it!
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: [SOLVED] Help with Cron jobs sub menu
«
Reply #3 on:
February 01, 2019, 09:33:50 am »
Yay, no problem.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
[SOLVED] Help with Cron jobs sub menu