Giter VIP home page Giter VIP logo

Comments (12)

AdSchellevis avatar AdSchellevis commented on June 28, 2024

@gitdevmod you best take a look at the IDS controller https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/ServiceController.php#L121

from plugins.

gitdevmod avatar gitdevmod commented on June 28, 2024

@AdSchellevis I tried this https://github.com/gitdevmod/plugins/blob/master/sysutils/SSOProxyAD/src/opnsense/mvc/app/controllers/OPNsense/SSOProxyAD/Api/ServiceController.php but I do not see the cron job with "crontab -l". I want to run joinDomain the first day of month.

from plugins.

AdSchellevis avatar AdSchellevis commented on June 28, 2024

@gitdevmod did you apply the new settings in Cron? it should generate your crontab to /var/cron/tabs/nobody

from plugins.

gitdevmod avatar gitdevmod commented on June 28, 2024

How do I apply the new settings? I used "save" button
/var/cron/tabs/nobody does not have my cron job

from plugins.

AdSchellevis avatar AdSchellevis commented on June 28, 2024

Apply at the bottom of the screen in /ui/cron/

from plugins.

gitdevmod avatar gitdevmod commented on June 28, 2024

There is "no results found!" after apply

from plugins.

AdSchellevis avatar AdSchellevis commented on June 28, 2024

what does the cron overview look like?

from plugins.

gitdevmod avatar gitdevmod commented on June 28, 2024

https://github.com/gitdevmod/plugins/blob/master/sysutils/SSOProxyAD/src/opnsense/mvc/app/models/OPNsense/SSOProxyAD/SSOProxyAD.xml

I've this error if I save on my plugin page

An API exception occured
UpdateCron not an attribute of general

from plugins.

AdSchellevis avatar AdSchellevis commented on June 28, 2024

which is true :) UpdateCron is not placed inside the general tag, which isn't a problem if you don't try to update general.UpdateCron

from plugins.

gitdevmod avatar gitdevmod commented on June 28, 2024

Ok, I moved UpdateCron to genral tag no more error with save button in plugin page but still no cron for updateDomain in /ui/cron/ or /var/cron/tabs/nobody

from plugins.

gitdevmod avatar gitdevmod commented on June 28, 2024

Hi @AdSchellevis, I still have not found a solution about this, any idea? Thanks

from plugins.

fraenki avatar fraenki commented on June 28, 2024

@gitdevmod: FWIW, I've added cron functionality to our new security/acme-client plugin just recently. It worked flawlessly. You may take a look at https://github.com/fraenki/plugins/blob/le_fixes/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/Api/SettingsController.php#L49-L115 for another example.

from plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.