Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Call scripts on network changes

Project Description
# Description

Run scripts on network state changes

# Install

pip install connman-dispatcher [--user]


# Usage

$ connman-dispatcher -h
usage: connman-dispatcher [-h] -p PATH

Scripts are run from folders setted in -p argument.

One can set more than one folder.

When network state changes, each script is executed with either `up` or `down`
argument, depening on the current network state.

For example, if connman-dispatcher was run like this:

connman-dispatcher -p /etc/connman-dispatcher

And we have some scripts in bash in this folder, something like:

```bash
up() {
# handle up state
}

down() {
# handle down state
}

state="$1"

case $state in
up)
up
;;
down)
down
;;
esac
```

When network state changes from `down` to `up`, each script in `/etc/connman-dispatcher`
will be executed with `up` argument, like this:

/etc/connman-dispatcher/10_handle_network_state_change.sh up
/etc/connman-dispatcher/some_other_executable up


Scripts, as well as script folders are sorted by name.
Release History

Release History

This version
History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
connman-dispatcher-0.0.8.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Mar 1, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting