Service command wrapper for Python.
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()