16
Development and Code Review / Cron job for my custom module
« on: December 28, 2015, 11:37:40 am »
Hi,
I'd like to find a way to define a cron job to my custom module.
Basically I want to run a service for a certain period of time.
e.g:
I want to run the following command every 3600 seconds.
btw. I have already read the Creating the hello world module. ( https://wiki.opnsense.org/index.php/Develop:Creating_the_hello_world_module ) but I could not find a title on a cron job.
Thank you in advance for your help.
I'd like to find a way to define a cron job to my custom module.
Basically I want to run a service for a certain period of time.
e.g:
I want to run the following command every 3600 seconds.
Code: [Select]
# configctl mymodule mycronjob
btw. I have already read the Creating the hello world module. ( https://wiki.opnsense.org/index.php/Develop:Creating_the_hello_world_module ) but I could not find a title on a cron job.
Thank you in advance for your help.