Skip to main content

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


Download files

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

Source Distribution

systemd-watchdog-thread-1.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

systemd_watchdog_thread-1.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page