I'm working on a new application for an OpenWRT device.
One of the features that I wish I had access to in OpenWRT is the ability to have procd terminate and restart a service, if that service fails to send procd an "I'm alive" message via a Unix Domain Socket periodically.
I've used this with applications on a desktop / server setting in the past, where systemd allows a service to be configured such that if the service failed to call sd_notify
periodically (which, under the hood, just sends a message to a Unix Domain Socket), the service would be terminated and re-started.
This is great for network servers, to ensure that a programming bug hasn't caused the server to hang indefinitely.
I don't see any indication that this kind of functionality is supported by procd.
Is this functionality available?
If not, are there any patches that implement it?
If not, would OpenWRT accept a patch that implemented this feature?