Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Shell script won't execute
« previous
next »
Print
Pages: [
1
]
Author
Topic: Shell script won't execute (Read 1437 times)
Plaidy
Newbie
Posts: 24
Karma: 1
Shell script won't execute
«
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
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.
«
Last Edit: May 17, 2021, 12:09:18 pm by Plaidy
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Shell script won't execute