OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • Custom Cron Job
« previous next »
  • Print
Pages: [1]

Author Topic: Custom Cron Job  (Read 669 times)

sbtech

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Custom Cron Job
« 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?
Logged

Greelan

  • Hero Member
  • *****
  • Posts: 961
  • Karma: 65
    • View Profile
Re: Custom Cron Job
« Reply #1 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • Custom Cron Job
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2