Send sd_notify messages in a thread
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
wdt = WatchdogThread()
t = wdt.run()
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d95d80e97c0b4c84a5be9259f39235a0f5856b8d74e157e21cb1fab7e4616749 |
|
MD5 | adeb6bc91a2f6f650aca9f3446d8248c |
|
BLAKE2b-256 | 51dbbeccf1b8b2fcba8199f5d5fbb079b6165d6aa518dd45de591169a78d9902 |
Close
Hashes for systemd_watchdog_thread-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09e993d3067a39242097a2199d2b940b087f57b827e82f56995b3016e69355ec |
|
MD5 | 06839937197c26fe0f7a5e013aa7c525 |
|
BLAKE2b-256 | b07e95f0bc7599538107bd06ab8624cd457b0635c7f08094e1def5560e8ed8b7 |