I am attempting to bring the Beaglebone down cleanly in the event of a power outage, to do this I am monitoring the AC input in a python script which when the AC power is lost calls a shutdown. If I call this from the cli with no AC but with USB the system shuts down correctly.
If I call this from a cron job the python script executes but the shutdown does not happen. I try to redirect any output to a file but no output is seen, I do see the file update time change each time the cron job fires but as before no shutdown
Any ideas ?