Skip to content

Commit 1c61e3f

Browse files
author
Aaron D. Marasco
committed
Add systemd_watchdog to README
1 parent 69e92c4 commit 1c61e3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ You can then see the notification in action by (re-)starting the service: `syste
216216

217217
$ systemctl --user restart python_demo_service
218218

219-
You can do a lot more via [sd_notify], see its documentation for details.
219+
You can do a lot more via [sd_notify], see its documentation and [systemd_watchdog] for details.
220220

221221

222222
## Creating a System Service
@@ -292,6 +292,7 @@ We now have a basic implementation of a system systemd service in Python. Depend
292292

293293
* Add support for reloading the service's configuration without a hard restart. See the [`ExecReload`](https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecReload=) option.
294294
* Explore the other features of the [python-systemd] package, for example the [`systemd.journal`](https://www.freedesktop.org/software/systemd/python-systemd/journal.html) module for advanced interaction with the systemd journal.
295+
* To have systemd monitor your service and restart it if it hangs, a Python wrapper for [sd_notify] is available called "[systemd_watchdog]."
295296

296297
And of course, if you find an error in this tutorial or have an addition, feel free to create an issue or a pull request.
297298

@@ -307,5 +308,5 @@ Happy coding!
307308
[systemd.service]: https://www.freedesktop.org/software/systemd/man/systemd.service.html
308309
[systemd.special]: https://www.freedesktop.org/software/systemd/man/systemd.special.html
309310
[systemd.target]: https://www.freedesktop.org/software/systemd/man/systemd.target.html
311+
[systemd_watchdog]: https://github.com/AaronDMarasco/systemd-watchdog
310312
[useradd]: https://linux.die.net/man/8/useradd
311-

0 commit comments

Comments
 (0)