Add your description here
Project description
remote-svc-ctrl 
An EPICS IOC that monitors and controls systemd services, exposing their status as Process Variables (PVs). Supports both local and remote (via SSH) service management.
This can be particularly useful for managing acquisition/control services on vendor provided systems, such as the Dectris camserver service for Pilatus3 detectors, or the xspd remote control service from X-Spectrum.
Features
- Poll
systemctl statusparse its output, and publish relevant information as PVs - Start, stop, and restart services via CA/PVA
- Monitor over SSH for services running on remote hosts
- Phoebus operator screen included
Usage
# Monitor a local service
remote-svc-ctrl "XF:28ID1-CT{SVC-MyApp:1}" my-app.service
# Monitor a service on a remote host via SSH
remote-svc-ctrl "XF:28ID1-CT{SVC-MyApp:1}" my-app.service --host user@server
Operator Screen
A Phoebus .bob screen is provided in op/service_ctrl.bob. Open it with the macro PREFIX set to your IOC's PV prefix.
Documentation
- PV Reference — full list of exposed PVs and their behavior
- Polkit Configuration — allow non-root service control without a password
- SSH Key Setup — configure passwordless SSH for remote host management
Development
The project uses uv for dependency management and task running. To set up the development environment, run:
uv sync # Install dependencies
uv run pytest # Unit tests
uv run pre-commit run --all-files # Linting and formatting
Requirements
- Python >= 3.11
- pythonSoftIOC >= 4.7.0
systemctlavailable on the target host- For non-root service control: appropriate polkit rules configured on the target host
- SSH key-based auth configured for remote hosts
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file remote_svc_ctrl-0.0.0.tar.gz.
File metadata
- Download URL: remote_svc_ctrl-0.0.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1505e6358de5cabb6912b7e976dd9c0bb4b5866a1594148957e2a030a37fda85
|
|
| MD5 |
6eb59c752eb52f45d64413e9871f28c4
|
|
| BLAKE2b-256 |
862f31a16317d2045b9cae7a081a6bd371ef998a4abacda076dfbde1d30f8b80
|
Provenance
The following attestation bundles were made for remote_svc_ctrl-0.0.0.tar.gz:
Publisher:
publish-pypi.yml on NSLS2/remote-svc-ctrl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remote_svc_ctrl-0.0.0.tar.gz -
Subject digest:
1505e6358de5cabb6912b7e976dd9c0bb4b5866a1594148957e2a030a37fda85 - Sigstore transparency entry: 1793619648
- Sigstore integration time:
-
Permalink:
NSLS2/remote-svc-ctrl@b2f7edbb1445ddf5b0b98c53e4cb3ab043c125a5 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/NSLS2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b2f7edbb1445ddf5b0b98c53e4cb3ab043c125a5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file remote_svc_ctrl-0.0.0-py3-none-any.whl.
File metadata
- Download URL: remote_svc_ctrl-0.0.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49de3b6f49e8f3d83eccacd8884c619326a3ab1f089cbbca1b6c0fee40cc80fd
|
|
| MD5 |
afbfac771709a257c1d8c12d53cd460e
|
|
| BLAKE2b-256 |
8c58269d9746784e929d159deaf5d7ad50388a4e0ee4c8f537a0fe9db90b696e
|
Provenance
The following attestation bundles were made for remote_svc_ctrl-0.0.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on NSLS2/remote-svc-ctrl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remote_svc_ctrl-0.0.0-py3-none-any.whl -
Subject digest:
49de3b6f49e8f3d83eccacd8884c619326a3ab1f089cbbca1b6c0fee40cc80fd - Sigstore transparency entry: 1793619915
- Sigstore integration time:
-
Permalink:
NSLS2/remote-svc-ctrl@b2f7edbb1445ddf5b0b98c53e4cb3ab043c125a5 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/NSLS2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b2f7edbb1445ddf5b0b98c53e4cb3ab043c125a5 -
Trigger Event:
release
-
Statement type: