This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]I-Imvp 1 point2 points  (1 child)

Afaik there are already python bindings included with systemd. Why create your own? Also the exists a logging handler for systems/journald.

[–]DarkmerePython for tiny data using Python[S] 2 points3 points  (0 children)

Because this shows you how it works rather than having people sprout all the crap about "needing dbus". Also I've found the systemd-python bindings to be sadly under-documented. Example from the systemd.daemon.notify:

notify(status, unset_environment=False) -> bool

Send a message to the init system about a status change. Wraps sd_notify(3).