OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: sbtech on June 02, 2022, 09:19:47 pm

Title: Custom Cron Job
Post by: sbtech on June 02, 2022, 09:19:47 pm
I have been trying to setup a custom cron job. Googled and found several forum posts about action.d. So I created a file and restarted the service but nothing showing up in cron.

action.d file and service restart


Code: [Select]
root@dmz01:/usr/local/opnsense/service/conf/actions.d # more actions_sbt.conf
[uploadacmecertificates]
command:/usr/local/bin/removed
parameters:-s removed
type:script
message:Upload Acme Certificates
root@dmz01:/usr/local/opnsense/service/conf/actions.d # service configd restart
Stopping configd...done
Starting configd.
root@dmz01:/usr/local/opnsense/service/conf/actions.d #

When I goto System->Settings->Cron and try and add a new job I can't find it in the list?
Title: Re: Custom Cron Job
Post by: Greelan on June 03, 2022, 09:26:00 am
Add a description in the conf for it to show in the GUI: https://docs.opnsense.org/development/backend/configd.html