Service command wrapper for Python.
Usage
Create object
`python from ctrldaemon import ControlDaemon obj = ControlDaemon("service") # Example "httpd" (Apache) `
Start service
`python from ctrldaemon import ControlDaemon obj = ControlDaemon("service") # Example "httpd" (Apache) obj.start() `
Stop service
`python from ctrldaemon import ControlDaemon obj = ControlDaemon("service") # Example "httpd" (Apache) obj.stop() `
Restart service
`python from ctrldaemon import ControlDaemon obj = ControlDaemon("service") # Example "httpd" (Apache) obj.restart() `
Memory
`python from ctrldaemon import ControlDaemon obj = ControlDaemon("service") # Example "httpd" (Apache) obj.get_memory_usage() `
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ctrldaemon-0.2.tar.gz.
File metadata
- Download URL: ctrldaemon-0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9cd035d05639aff4cd560fcd4c7a752dc8f0b047853fcf438b8162f230c383a
|
|
| MD5 |
66aa69b307d4c6715ef8ce06e2e947ab
|
|
| BLAKE2b-256 |
4ada35e034884730ffc726e07606d7f53b2090502fad7539140b11dc3317a17a
|