Quantcast
Viewing all articles
Browse latest Browse all 40524

Force a reboot without OfxWatchdog

i recently had the same problem and wrote this apple script that runs in the background.

It checks if the OF app is running. If not restarts it.
Every so often it also checks if a text file (heartbeat.txt) changed or not. The OF app edits heartbeat.txt every few seconds. If this text file has not been changed for 10 seconds then i assume my app froze. The apple script then calls do shell script {"killall -9 myApp"}

in addition the script also monitors the time of day and turns itself off at midnight, so that the computer can do it's scheduled shutdown.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>