Skip to content

Support custom actions on service exit events #713

@jy5275

Description

@jy5275

In SONiC on Ubuntu, the service exit behavior is stored in an external configuration database.
When a service exits, supervisord captures that status change event and triggers a python script, which then reads the database to decide what to do next, such as restart, ignore, shutdown or do other custom logic.

Currently, Pebble only supports a fixed set of post-exit behaviors via on-success or on-failure options:

  • restart
  • ignore
  • shutdown
  • failure-shutdown

We would like Pebble to support custom logic execution upon service exit events — similar to Supervisord’s event system (Events — Supervisor documentation ).

Pebble’s existing Notices feature provides a somewhat similar mechanism, but it focuses on engine-level changes, not service-level events.

We want a more dynamic and flexible event mechansim for service status changes behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    26.04An item we hope to do in the 26.04 cycleneeds designNeeds more thought or a specroadmapAn official roadmap item

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions