Service command wrapper for Python.
Project description
Service command wrapper for Python.
Usage
Create object
obj = ControlDaemon(“service”) # Example “httpd” (Apache)
Start service
obj.start()
Stop service
obj.stop()
Restart service
obj.restart()
Memory
obj.get_memory_usage()