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
File details
Details for the file systemd_watchdog_thread-1.1.tar.gz
.
File metadata
- Download URL: systemd_watchdog_thread-1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/69.2.0 requests-toolbelt/0.8.0 tqdm/4.64.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ea1b75b522a2c1e0fbe2b9fecaf957c99f4d6085bdc394aea6a6a9a1ca82b3 |
|
MD5 | 0e89cccf5f8c2a6f9343d3462ad3e100 |
|
BLAKE2b-256 | 0a96e332fd892a062e57f447342eddae022c9c35c355ccd895e8677a38cbede7 |
File details
Details for the file systemd_watchdog_thread-1.1-py3-none-any.whl
.
File metadata
- Download URL: systemd_watchdog_thread-1.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/69.2.0 requests-toolbelt/0.8.0 tqdm/4.64.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b67e89e1b28adcc08cd0dd8e0c8c09e4a283e8cb9a93690e70b2f73ee49298f |
|
MD5 | 2bf1ef0acbd00d1b7f5115ee62f6e8e1 |
|
BLAKE2b-256 | fa5b5b02c5c42b3e8d42e08e27142142e49eb2c91b4b374d361939a110305d7a |