simple class to use dbus more handy in python. just give the name and check run state or start/stop/restart Service in Systemd (need admin right..)
Maybe this helps you in your simple projects 😀
Start a Service check starte then stop and check state then Restart
simple = SimpleSystemDServiceAccess('test.service')
simple.StartService()
a=simple.IsRunning()
print(a)
simple.StopService()
a=simple.IsRunning()
print(a)
simple.RestartService()