Skip to content

Restart an application when an ip address changes using Linux netlink sockets

License

Notifications You must be signed in to change notification settings

schmidmt/ipwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPWatch

ipwatch is a tool for monitoring a netlink socket for changes in IP address which in turn restarts services that would otherwise fail to recognize the change.

Options

ipwatch

USAGE:
    ipwatch [OPTIONS] <command>...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -i, --interface <IFNAME>    Interface to monitor using regexp (default .*)
    -t, --timeout <timeout>     Specify the grace period between SIGTERM and SIGKILL (default 10)

ARGS:
    <command>...    Command to run

Example

To start openpyn so that change on wlan0 will cause it to restart, you may run: ipwatch -i wlan0 openpyn us.

Install

Using cargo, the installation is as simple as: cargo install ipwatch

About

Restart an application when an ip address changes using Linux netlink sockets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages