Skip to main content

Add your description here

Project description

remote-svc-ctrl CI

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 status parse 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.

Operator Screen

Documentation

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
  • systemctl available 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remote_svc_ctrl-0.0.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remote_svc_ctrl-0.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

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

Hashes for remote_svc_ctrl-0.0.0.tar.gz
Algorithm Hash digest
SHA256 1505e6358de5cabb6912b7e976dd9c0bb4b5866a1594148957e2a030a37fda85
MD5 6eb59c752eb52f45d64413e9871f28c4
BLAKE2b-256 862f31a16317d2045b9cae7a081a6bd371ef998a4abacda076dfbde1d30f8b80

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for remote_svc_ctrl-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49de3b6f49e8f3d83eccacd8884c619326a3ab1f089cbbca1b6c0fee40cc80fd
MD5 afbfac771709a257c1d8c12d53cd460e
BLAKE2b-256 8c58269d9746784e929d159deaf5d7ad50388a4e0ee4c8f537a0fe9db90b696e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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