No project description provided
Project description
systemd-watchdog-thread
Runs systemd notifies in thread.
When run() is called it sends the READY message to systemd and then sends WATCHDOG messages at one-half the interval set by the WATCHDOG_USEC environment variable.
It runs as a daemon thread, so it will exit when the main program exits.
usage
from systemd_watchdog_thread import WatchdogThread
wdt = WatchdogThread()
t = wdt.run()
or
from systemd_watchdog_thread import run_watchdog
run_watchdog()
testing
finish() may be called to stop sending READY messages. This is provided to test the systemd watchdog functionality.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for systemd_watchdog_thread-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ea1b75b522a2c1e0fbe2b9fecaf957c99f4d6085bdc394aea6a6a9a1ca82b3 |
|
MD5 | 0e89cccf5f8c2a6f9343d3462ad3e100 |
|
BLAKE2b-256 | 0a96e332fd892a062e57f447342eddae022c9c35c355ccd895e8677a38cbede7 |
Close
Hashes for systemd_watchdog_thread-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b67e89e1b28adcc08cd0dd8e0c8c09e4a283e8cb9a93690e70b2f73ee49298f |
|
MD5 | 2bf1ef0acbd00d1b7f5115ee62f6e8e1 |
|
BLAKE2b-256 | fa5b5b02c5c42b3e8d42e08e27142142e49eb2c91b4b374d361939a110305d7a |