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

https://github.com/andriy-bilynskyy/con-check

Internet connection checker
https://github.com/andriy-bilynskyy/con-check

checker internet-connection ip linux ping script

Last synced: 3 months ago
JSON representation

Internet connection checker

Awesome Lists containing this project

README

          

## Check internet connection on a specific interface
This part of software provides checking of internet connection on a specific interface.
The porpouse of using is to up/down redundant internet connection if main is lost/established.
##### Get project
repo int -u https://github.com/andriy-bilynskyy/con-check-repo.git
repo sync -c
#### Compile executable

necessarily libraries:
- liboping-dev
- libconfuse-dev

from project root folder

mkdir build
cd build
cmake ..
make
sudo make install
#### Using
edit configuration file /etc/con-check/con-check.conf
edit connection establish script. default path: /etc/con-check/online.sh
edit connection lost script. default path: /etc/con-check/offline.sh
#### Service insatallation
sudo cp service/con-check_serv /etc/init.d/
sudo update-rc.d con-check_serv defaults
#### Service usage
sudo /etc/init.d/con-check_serv status
sudo /etc/init.d/con-check_serv start
sudo /etc/init.d/con-check_serv stop
sudo /etc/init.d/con-check_serv restart