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.1.tar.gz (196.8 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.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: remote_svc_ctrl-0.1.1.tar.gz
  • Upload date:
  • Size: 196.8 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.1.tar.gz
Algorithm Hash digest
SHA256 92369343417b4b074a544b2c09644ea9061b7fa8ad05af63fe339b58d6bf0d77
MD5 cd2cbd163097cc3c6e11a64d0d37ccfd
BLAKE2b-256 6995bc55b603d98c238a7e293ac31f0fd95d076a0eb890b6329279a79581b668

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: remote_svc_ctrl-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4169c6f762734ef41a287222fa81874e2292f60c4810bce1249914531475adb0
MD5 c44c87d5a789cb88147c9d244148e22b
BLAKE2b-256 a70e6934bd99a905150c5e9bd26e04429bc00ca01e756ad37a0d8e2d708ca6d2

See more details on using hashes here.

Provenance

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