Skip to content

yograterol/python-ctrldaemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-ctrldaemon

Service command wrapper for Python.

Usage

Create object

from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)

Start service

from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
obj.start()

Stop service

from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
obj.stop()

Restart service

from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
obj.restart()

Memory

from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
obj.get_memory_usage()

About

Service command wrapper for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages