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.1.2.tar.gz (198.1 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.1.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file remote_svc_ctrl-0.1.2.tar.gz.

File metadata

  • Download URL: remote_svc_ctrl-0.1.2.tar.gz
  • Upload date:
  • Size: 198.1 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.1.2.tar.gz
Algorithm Hash digest
SHA256 4ec8f9e00046c5e1bc25b903b0915c5879a20142852d6fa8ca4fefe71a9b8278
MD5 344766886d84221bd92785d9788bf6fa
BLAKE2b-256 28942a5191d3abdc784625aea9f8bb9427f9228dc49e2c1c3b87b93fc15c7a53

See more details on using hashes here.

Provenance

The following attestation bundles were made for remote_svc_ctrl-0.1.2.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.1.2-py3-none-any.whl.

File metadata

  • Download URL: remote_svc_ctrl-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.2 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f102fe1647f8d7af349f0366d82acfafcfae5ed5d7b099d38b3e3e772fcb9ac6
MD5 044e15337fc176df58862bed2da60d2e
BLAKE2b-256 5f0defe8c1c9bb14209bfd336cb8b95f7977238d45a51c1d419cf1f6752b492c

See more details on using hashes here.

Provenance

The following attestation bundles were made for remote_svc_ctrl-0.1.2-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