I have a server monitoring script which, among other things, checks the state of an IPSec tunnel using
ipsec auto --status
It works like a charm when run from the console (as root) but as soon as I run it from a (root) cronjob, the command fails: no output at all.
I even tried to create this simple root cronjob:
*/1 * * * * ipsec auto --status > /tmp/ipsec.txt
All it does is create an empty /tmp/ipsec.txt file!
Note: All other tasks in the script including networking and DB access work fine.
Any lights welcome.