Skip to main content

Maintainer: k dot shenk at gmail dot com

supermgr is merely an alternate means of managing supervisord processes. supervisorctl felt a bit clunky for me while working with process groups and individual processes for a certain project. This tool connects directly to supervisor via its XML-RPC (<http://supervisord.readthedocs.io/en/latest/api.html>) interface.

Installation

Via PIP: pip install supermgr

Usage

Start the first "prgmName" not found to be running
supermgr --start prgmName

Start process number 3 and 5 of "prgmName"
supermgr --start prgmName 3 5

Start all "prgmName" processes
supermgr --start prgmName all

List all processes
supermgr --list

List only fatal processes
supermgr --list --state fatal

List any process that match
supermgr --list prgm*

List full status for the running processes for "prgmName"
supermgr --list prgmName --full --state running

Tail the stdout logfile for "prgmName"
supermgr --tail prgmName

Tail the stderr logfile for "prgmName"
supermgr --tail prgmName err

Management interface for supervisorctl

optional arguments:
  -h, --help            show this help message and exit

Actions:
  -s START [START ...], --start START [START ...]
                        Start a process by number, the next process not
                        started, or all of them (default: None)
  -S STOP [STOP ...], --stop STOP [STOP ...]
                        Stop a process by number, the next process not
                        stopped, or all of them (default: None)
  --restart RESTART [RESTART ...]
                        Restart a process by number, the next process found
                        running, or all. WARNING: If the process specified is
                        NOT running, this will attempt to start it (default:
                        None)
  --save [SAVE]         Save the current state of each process group and
                        number (default: None)
  --reload [RELOAD]     Reload the state of each group and process from a
                        saved status (default: None)
  -l [LIST [LIST ...]], --list [LIST [LIST ...]]
                        List all groups and processes. Optionally show a
                        specific group (default: None)

  -t TAIL [TAIL ...], --tail TAIL [TAIL ...]
                        Tail a process's logfile. If the type (err, out) is
                        not provided this will default to stdout (default:
                        None)

List Modifiers:
  -r, --running         DEPRECATED: please use --state (default: False)
  --state {unknown,backoff,running,stopped,stopping,fatal,starting,exited}
                        Only show processes in the specified state (default:
                        None)
  -f, --full            Show full status of processes (default: False)

Monitoring Options:
  --monitor-running     Check for any processes not running (default: False)
  --ignore MON_IGNORE [MON_IGNORE ...]
                        Exclude any process groups from the monitoring check (default: None)

When starting or stopping processes, if nothing is provided as a process number the next process number in the group’s sequence not found in the desired state will be acted upon.

Contributing

Suggestions and contributions are welcome. Please fork me and create PRs back to the develop branch.

Disclaimer

I’m new to creating python packages. This seemed like a good place to start learning, being a relatively small project to bite off.

Metadata

Release files for supermgr 0.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for supermgr 0.16
File Size Uploaded
supermgr-0.16.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for supermgr 0.16
File Interpreter ABI Platform
supermgr-0.16-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 19.8 kB

Release files / supermgr-0.16.tar.gz

Download URL supermgr-0.16.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
00a42496b5c69911476fa22de28a6ef1875018622dda1fb5c2572b70b40adeaa
BLAKE2b-256 checksum
How to use checksums
5d801b33a1bfad0739bb6ae679f739cd04034be8dd91fc606218bd2bd567253a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/36.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.9

Release files / supermgr-0.16-py2.py3-none-any.whl

Download URL supermgr-0.16-py2.py3-none-any.whl
Size 10.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
26918dfa1d919ee52ba68e9d853232fd0a165b1df49897a427e10515637efa74
BLAKE2b-256 checksum
How to use checksums
a5f10231b7c44052e2b0519aada9ba542500f0e8bc5eedaf17b0e2fb25c0a932
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/36.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.9

Release history Release notifications | RSS feed

This release

0.16 This release

2 release files

0.15

1 release file

0.14

1 release file

0.13

1 release file

0.12

1 release file

0.11

1 release file

0.10

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page