SystemD multi-process manager
SystemD supports multiple processes of the exact same type using templating. However, it's very tedious to scale the number of processes up or down. This script aims to simplify that.
Installation
The script is published on PyPI under the name sdmpm.
- Use a tool like pipx or psm to install this script into a dedicated virtualenv:
psm install sdmpm - Install using pip:
pip install sdmpm(preferably with--useror in a virtualenv)
You can also just download the script directly from Github, it has no external dependencies and is tested on Python 3.5 and higher.
wget https://github.com/anlutro/systemd-multi-process-manager/raw/master/src/sdmpm.py -o /usr/local/bin/sdmpm
Usage
Assuming you have a templated service already configured (i.e. there is an /etc/systemd/system/example@.service), you can use this to determine how many of this process should be running:
$ sdmpm scale example 4
You can also use the standard systemctl commands such as status, start, stop, restart, enable and disable.
You can pass --user which will work just like systemctl --user.
License
The contents of this repository are released under the GPL v3 license. See the LICENSE file included for more information.
Metadata
Release files for sdmpm 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sdmpm-0.1.tar.gz | 3.5 kB | Without provenance | Details |
Release files / sdmpm-0.1.tar.gz
| Download URL | sdmpm-0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78b39c30b753edd200ce3dcad0b8ff39a4c601ac34ef9e6d25d399aefec599c9
|
|
BLAKE2b-256 checksum How to use checksums |
fbfbd0f2bd8071a11eedf840803a4532aebd32958a9a48b00e06e8502d1ba4aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
|
Security for sdmpm 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.