Skip to main content

A command line interface for managing s6 services, using the s6 toolset

Project description

A command line interface for managing s6 services, using the s6 suite of tools.

Dependencies:

  • Python 3.6+

  • Plumbum

  • s6

  • lsof or BusyBox (lsof)

  • psmisc or BusyBox (pstree)

  • coreutils or BusyBox (tail)

Optional Dependencies:

  • lnav or multitail

  • highlight or bat

Installation

From PyPI:

pip install essex
# activate bash completion:
complete -o dirnames -C _essex essex

Usage

essex 0.1.1

Simply manage services

Usage:
    essex [SWITCHES] [SUBCOMMAND [SWITCHES]]

Meta-switches:
    -h, --help                                            Prints this help message and quits
    --help-all                                            Prints help messages of all sub-commands and quits
    -v, --version                                         Prints the program's version and quits

Switches:
    -d, --directory SERVICES_DIRECTORY:str                folder of services to manage; the default is the first existing match from ('./svcs', '~/svcs',
                                                          '/etc/svcs', '/svcs'), unless a colon-delimited SERVICES_PATHS env var exists;
    -l, --logs-directory SERVICES_LOGS_DIRECTORY:str      folder of services' log files; the default is SERVICES_DIRECTORY/../svcs-logs

Sub-commands:
    cat                                                   View services' run, finish, and log commands
    disable                                               Configure individual services to be down, without actually stopping them
    enable                                                Configure individual services to be up, without actually starting them
    list                                                  List all known services
    log                                                   View a service's log
    new                                                   Create a new service
    off                                                   Stop all services and their supervision
    on                                                    Start supervising all services
    reload                                                Restart (all or specified) running services whose run scripts have changed
    sig                                                   Send a signal to a service
    start                                                 Start individual services
    status                                                View the current states of (all or specified) services
    stop                                                  Stop individual services
    sync                                                  Start or stop services to match their configuration
    tree                                                  View the process tree from the supervision root

Packaging

pip install -r requirements.txt
# Create a wheel and source distribution in dist/
flit build
# Create a wheel and source distribution in dist/ AND upload to PyPI:
flit publish

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

essex-0.1.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

essex-0.1.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file essex-0.1.1.tar.gz.

File metadata

  • Download URL: essex-0.1.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for essex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b663596c08d261b73b1e55e7bbd2ef2a4ea3a8c16f6859a5a99989e3be5167a
MD5 5c815d564fa04aa9cfc97c387130c424
BLAKE2b-256 bcf2db7e1f36e709a33de4d4158b6ea252401513f5b302564bc7cced85b0a8c3

See more details on using hashes here.

File details

Details for the file essex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: essex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for essex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17a1240d62a228f746e4e4bc1f1710fd5d100bcc3ab5c0b7cf7fe65873e360af
MD5 ba5c55f429fbe217c7b07d7aa3388018
BLAKE2b-256 7e53c370f44bcdc5ec3476c7928bbebd95e4eb9c2db4317adf0e4d32e7a262e2

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