Wildman <best_...@yahoo.com>:
> Thanks but I knew about systemctl. As I already said my goal is to do
> it without the use of an external program.

Inspect:

   <URL:
   https://github.com/systemd/systemd/blob/master/src/systemctl/systemctl.c>

In particular:

   get_state_one_unit()

Then, proceed to:

   <URL: https://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html>


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to