This Python script monitors a publicly shared private Google Document for specific trigger words. Based on those triggers, it can:
- 🔄 Reboot your Windows PC
- ❌ Terminate a specific process
It's ideal for controlled remote intervention without needing direct access to the machine.
- ✅ Polls a public read-only Google Doc at set intervals
- 🔁 Reboots the PC if
REBOOTis found - ❌ Kills a specified process if
KILLis found - ⚙️ All settings configurable via
config.ini - 📝 Logs all actions to a
reboot_trigger.logfile - 🧪 Supports safe testing mode (no real reboot)
| File | Description |
|---|---|
rebooter.py |
The main Python script |
config.ini |
Configuration file (URL, intervals, etc.) |
reboot_trigger.log |
Log file with timestamps and actions |
pip install requestsCreate an empty Google Doc and share it with the following setting: Anyone on the internet with the link can view. This way you are the only one that can edit the file, but the script is able to freely read it.
Alternatively, use a file on your own server. The script simply queries file contents looking for triggers.
Edit the config.ini file. Remember to set perform_reboot to true to allow the script to reboot the computer.
[Settings]
google_doc_url = https://docs.google.com/document/d/XXXXXXXXXXXXXXX
check_interval_seconds = 60
trigger_text_reboot = REBOOT
trigger_text_kill = KILL
process_to_kill = rider64.exe
perform_reboot = false| Key | Description |
|---|---|
google_doc_url |
Public URL of a Google Doc |
check_interval_seconds |
How often (in seconds) to check the document |
trigger_text_reboot |
Text that triggers a reboot (e.g., REBOOT) |
trigger_text_kill |
Text that triggers process termination (KILL) |
process_to_kill |
Name of the process to terminate (e.g., rider64.exe) |
perform_reboot |
If true, will reboot; if false, logs only |
Run the script manually:
python rebooter.pyThen keep using the computer. When the computer stops responding, use another machine to add KILL to the Google Doc, which will cause the script to kill the configured process (for example rider64.exe). If computer is still not responding, add REBOOT to the Google Doc for a forceful reboot. Clear the Google Doc after script catches the trigger word.
Alternatively use Task Scheduler to automate running the script when computer starts.
Type any of the configured triggers anywhere in your shared Google Doc:
REBOOT→ Triggers a system rebootKILL→ Terminates the specified process
✅ Reboot only happens once and exits.
🔁 Process termination can happen multiple times if process is restarted.
Set perform_reboot = false to test the script safely without actually rebooting the system. The script will log what it would have done.
As an additional safety precaution, if reboot trigger is present in Google Doc when the script is started, the script will exit instead of rebooting the computer immediately.
[2025-05-12 20:44:00] Configuration loaded.
[2025-05-12 20:44:00] Monitoring: https://docs.google.com/document/d/...
[2025-05-12 20:44:01] [*] Performing initial check...
[2025-05-12 20:44:01] [+] No trigger at launch. Entering monitoring loop...
[2025-05-12 20:46:00] [!] Detected kill trigger: 'KILL'
[2025-05-12 20:46:00] [!] Terminated process: rider64.exe (PID 8516)
MIT License — feel free to modify, share, or integrate into your own systems.