An open API service indexing awesome lists of open source software.

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.

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)]
}
```