aboutsummaryrefslogtreecommitdiff
path: root/sys/shutdown_watchdog
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-24 05:25:39 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-24 05:25:39 +0200
commita1627ac743289e768b138f1a60753a62e0869cc4 (patch)
tree92ab373442943f621bb26b3b284bb1da90e2923a /sys/shutdown_watchdog
parentfdb0eb921205c34fb6ff5728727a097767ffae5a (diff)
downloaddotfiles-a1627ac743289e768b138f1a60753a62e0869cc4.tar.gz
dotfiles-a1627ac743289e768b138f1a60753a62e0869cc4.zip
Update/Overhaul
Diffstat (limited to 'sys/shutdown_watchdog')
-rwxr-xr-xsys/shutdown_watchdog11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/shutdown_watchdog b/sys/shutdown_watchdog
new file mode 100755
index 0000000..79bc7bf
--- /dev/null
+++ b/sys/shutdown_watchdog
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+LOGFILE="/tmp/shutdown_watchdog.log"
+
+while true; do
+ echo "--- $(date) ---" >> "$LOGFILE"
+ uptime >> "$LOGFILE"
+ sensors >> "$LOGFILE" 2>/dev/null
+ acpi -V >> "$LOGFILE" 2>/dev/null
+ sleep 10
+done