-
Notifications
You must be signed in to change notification settings - Fork 69
Description
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.