Skip to main content

Wraps any program to provide XMLRPC start/stop functionality + logging

Project description

servicecontrol is a script intended to perform a number of functions

  • allow one program to turn on/off any other program

  • log output of that program

  • restart program if it crashes (for whatever reason)

  • monitor that program’s resource utilisation and reboot if necessary

Syntax

The syntax is:

servicecontrol <paramters> "<program with its own parameters>"

As usual you can get help by typing:

serviceconrol --help

Which will produce the built-in help on the available syntax:

usage: servicecontrol.py [-h] [--start] [--addr ADDR] [--port PORT]
                         [--no-echo] [--autorestart] [--cpurestart CPURESTART]
                         [--log LOG] [-i]
                         cmd

positional arguments:
  cmd                   The command to parse

optional arguments:
  -h, --help            show this help message and exit
  --start               Immediately start software (do not wait for start())
  --addr ADDR           xmlrpc address, default=localhost
  --port PORT           xmlrpc port, default=9001
  --no-echo             Do not display output to stdout
  --autorestart         Restart on crash
  --cpurestart CPURESTART
                        Set CPU threshold to automatically restart service at
  --log LOG             Filename to log to (default is None - stdout only)
  -i, --interact

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

servicecontrol-0.11.1.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file servicecontrol-0.11.1.tar.gz.

File metadata

  • Download URL: servicecontrol-0.11.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/2.7.13

File hashes

Hashes for servicecontrol-0.11.1.tar.gz
Algorithm Hash digest
SHA256 1d4802a66da65fd7a4db9900048399183f7b7243a339219ee389a1423ac681e6
MD5 0c44e092dbb11c848a523e59b47c8b8f
BLAKE2b-256 450b3634b970b4bc1d653a1372a667ce7b20ec28752c2beeaac0ad95d6a33ce6

See more details on using hashes here.

Supported by

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