Skip to main content

Service command wrapper for Python.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctrldaemon-0.2.tar.gz (3.5 kB view details)

Uploaded Source

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

Hashes for ctrldaemon-0.2.tar.gz
Algorithm Hash digest
SHA256 b9cd035d05639aff4cd560fcd4c7a752dc8f0b047853fcf438b8162f230c383a
MD5 66aa69b307d4c6715ef8ce06e2e947ab
BLAKE2b-256 4ada35e034884730ffc726e07606d7f53b2090502fad7539140b11dc3317a17a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page