1
General Discussion / Custom Crontab Service
« on: December 28, 2022, 04:13:47 pm »
I'm trying to configure an execution script in configd according to the documentation: https://docs.opnsense.org/development/backend/configd.html
I accessed the /usr/local/opnsense/service/conf/actions.d/actions_filter.conf file and created the following call:
[vpn-monitor]
command:/usr/local/bin/php /root/vpn-monitor/vpn-monitor.php
parameters:
type: script
message: Coleta de usuarios de vpn %s
description:Coleta vpn
I restarted the configd service, and via GUI I configured it so that there was a cron call every 5 minutes, but I didn't find it in the log of this execution in /var/log/configd/latest.log
Is there somewhere I can validate if cron is running correctly, if I run the script manually it runs correctly.
I accessed the /usr/local/opnsense/service/conf/actions.d/actions_filter.conf file and created the following call:
[vpn-monitor]
command:/usr/local/bin/php /root/vpn-monitor/vpn-monitor.php
parameters:
type: script
message: Coleta de usuarios de vpn %s
description:Coleta vpn
I restarted the configd service, and via GUI I configured it so that there was a cron call every 5 minutes, but I didn't find it in the log of this execution in /var/log/configd/latest.log
Is there somewhere I can validate if cron is running correctly, if I run the script manually it runs correctly.