Name | systemd-watchdog-thread JSON |
Version |
1.1
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-04-12 21:36:52 |
maintainer | None |
docs_url | None |
author | Gerard |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2023 NMRhub Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# systemd-watchdog-thread
Runs [systemd](https://en.wikipedia.org/wiki/Systemdwatchdog) 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](https://docs.python.org/3/library/threading.html#thread-objects),
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "systemd-watchdog-thread",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Gerard",
"author_email": "gweatherby@uchc.edu",
"download_url": "https://files.pythonhosted.org/packages/0a/96/e332fd892a062e57f447342eddae022c9c35c355ccd895e8677a38cbede7/systemd_watchdog_thread-1.1.tar.gz",
"platform": null,
"description": "# systemd-watchdog-thread\nRuns [systemd](https://en.wikipedia.org/wiki/Systemdwatchdog) notifies in thread.\n\nWhen *run()* is called it sends the READY message to systemd and then\nsends WATCHDOG messages at one-half the interval set by the WATCHDOG_USEC\nenvironment variable.\n\nIt runs as a daemon [thread](https://docs.python.org/3/library/threading.html#thread-objects),\nso it will exit when the main program exits.\n\n## usage\n\n from systemd_watchdog_thread import WatchdogThread\n\n wdt = WatchdogThread()\n t = wdt.run()\n\nor\n\n from systemd_watchdog_thread import run_watchdog \n\n run_watchdog()\n\n## testing\n*finish()* may be called to stop sending READY messages. This is provided to test\nthe systemd watchdog functionality.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 NMRhub Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": null,
"version": "1.1",
"project_urls": {
"Homepage": "https://github.com/NMRhub/systemd-watchdog-thread",
"Issues": "https://github.com/NMRhub/systemd-watchdog-thread/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fa5b5b02c5c42b3e8d42e08e27142142e49eb2c91b4b374d361939a110305d7a",
"md5": "2bf1ef0acbd00d1b7f5115ee62f6e8e1",
"sha256": "0b67e89e1b28adcc08cd0dd8e0c8c09e4a283e8cb9a93690e70b2f73ee49298f"
},
"downloads": -1,
"filename": "systemd_watchdog_thread-1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2bf1ef0acbd00d1b7f5115ee62f6e8e1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4411,
"upload_time": "2024-04-12T21:36:47",
"upload_time_iso_8601": "2024-04-12T21:36:47.415671Z",
"url": "https://files.pythonhosted.org/packages/fa/5b/5b02c5c42b3e8d42e08e27142142e49eb2c91b4b374d361939a110305d7a/systemd_watchdog_thread-1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0a96e332fd892a062e57f447342eddae022c9c35c355ccd895e8677a38cbede7",
"md5": "0e89cccf5f8c2a6f9343d3462ad3e100",
"sha256": "e8ea1b75b522a2c1e0fbe2b9fecaf957c99f4d6085bdc394aea6a6a9a1ca82b3"
},
"downloads": -1,
"filename": "systemd_watchdog_thread-1.1.tar.gz",
"has_sig": false,
"md5_digest": "0e89cccf5f8c2a6f9343d3462ad3e100",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3941,
"upload_time": "2024-04-12T21:36:52",
"upload_time_iso_8601": "2024-04-12T21:36:52.287912Z",
"url": "https://files.pythonhosted.org/packages/0a/96/e332fd892a062e57f447342eddae022c9c35c355ccd895e8677a38cbede7/systemd_watchdog_thread-1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-12 21:36:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NMRhub",
"github_project": "systemd-watchdog-thread",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "systemd-watchdog-thread"
}