[OpenWrt-Devel] Ubus based service watchdog?

Michael Jones mike at meshplusplus.com
Fri May 15 01:09:26 EDT 2020


On Thu, May 14, 2020, 23:43 Philip Prindeville <
philipp_subx at redfish-solutions.com> wrote:

>
> > On May 13, 2020, at 11:48 AM, Michael Jones <mike at meshplusplus.com>
> wrote:
> >
> > I have a critical service on my OpenWRT system that needs monitoring and
> re-starting if it's failed.
> >
> > I've been looking for a mechanism in procd that would allow me to
> request that my service be terminated if it did not periodically notify
> some watchdog endpoint via ubus.
> >
> > It seems to me like this is not something that is currently supported by
> procd, and I've written my own clumsy "watchdog" wrapper program that tries
> to do the job.
> >
> > Are there any plans to support a feature like this in procd directly in
> the future?
> >
> > If there are no plans, and I were to write code for this, would OpenWRT
> be interested in reviewing, and then merging, patches?
> >
> > Are there other people on this list who would take advantage of this
> feature if it were available? If so, what functionality would you like to
> see?
> >
>
>
> So existing services that are launched by procd (like ISC dhcpd) would
> need to be patched to support this?
>
> -Philip
>

Yes. That would be the case.

It would need to be an opt-in feature. Its not possible for a service
watchdog to be opt out because service watchdogs need to be tailored to the
service being watched.

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200515/5a505dc6/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list