Shell script won't execute

Started by Plaidy, May 17, 2021, 11:38:47 AM

Previous topic - Next topic
May 17, 2021, 11:38:47 AM Last Edit: May 17, 2021, 12:09:18 PM by Plaidy
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 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.