You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -216,7 +216,7 @@ You can then see the notification in action by (re-)starting the service: `syste
216
216
217
217
$ systemctl --user restart python_demo_service
218
218
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.
220
220
221
221
222
222
## Creating a System Service
@@ -292,6 +292,7 @@ We now have a basic implementation of a system systemd service in Python. Depend
292
292
293
293
* 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.
294
294
* 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]."
295
296
296
297
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.
0 commit comments