https://github.com/idreesinc/rebooter
A simple Node.js program that reboots my server if it disconnects for too long.
https://github.com/idreesinc/rebooter
javascript nodejs
Last synced: about 1 year ago
JSON representation
A simple Node.js program that reboots my server if it disconnects for too long.
- Host: GitHub
- URL: https://github.com/idreesinc/rebooter
- Owner: IdreesInc
- Created: 2017-05-23T02:35:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T21:57:09.000Z (about 9 years ago)
- Last Synced: 2025-01-27T23:18:56.715Z (over 1 year ago)
- Topics: javascript, nodejs
- Language: JavaScript
- Homepage: http://idreesinc.com
- Size: 1.95 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rebooter
A quick and dirty Node.js program that reboots my Raspberry Pi server if it disconnects for too long.
### Config Explanation
```javascript
{
"enabled": true,
"standard_request_rate": 10000, // The standard rate to ring up "google.com" (in milliseconds)
"disconnected_request_rate": 1000, // The rate to request from "google.com" when the internet has been detected as disconnected
"max_connection_attempts": 600, // The maximum number of connection attempts to try before rebooting
"mod_attempts_to_print": 30 // When to print the number of failed attempts to console [if (connection_attempts % mod_attempts_to_print === 0)]
}
```