OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: Plaidy on May 17, 2021, 11:38:47 AM

Title: Shell script won't execute
Post by: Plaidy on May 17, 2021, 11:38:47 AM
I was hoping someone could tell me what I am doing wrong. I set up a file in actions.d and linked the action to a shell script I have. I do a "service configd restart" and then test my action with "configctl checkwan load" and the script executes and says ok. I then go into the gui and select a cron job for that action but it never runs.

Here is my code https://pastebin.com/kriFUHkM (https://pastebin.com/kriFUHkM) I have tried using different actions like start restart etc and nothing helps.

The reason I know when it does and doesn't execute according to schedule is I set up a healthchecks.io call in the checkwans.sh script for the time being.

Edit: Never mind. After making all the changes I removed the whole cron and added it again via the GUI and now it seems to be firing on schedule.