Skip to content

xeno27/simple-systemd-service-access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple Phython systemd service access

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 😀

Example

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()

About

simple class to use dbus services in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages