[OpenWrt-Devel] can netifd automatically restart a service?

Nikos Mavrogiannopoulos nmav at gnutls.org
Thu Jun 11 16:28:01 EDT 2015


On Thu, 2015-06-11 at 09:20 +0100, Bruno Randolf wrote:
> On 06/11/2015 07:32 AM, Nikos Mavrogiannopoulos wrote:
> > In issue 574 [0] there is a big discussion of the behavior of
> > transmission in openwrt. To summarize it:
> > * By default when transmission downloads, it may crash the router due to
> > high memory consumption and OOB. That crash may lead to reboot or not.
> > * To avoid that, some memory limitations can be set (such as disabling
> > overcommit), and then transmission will exit, but the router would be
> > functional.
> > 
> > I think the 2nd is quite a reasonable approach as it is more important
> > to keep the router up and running than transmission (or any other
> > individual service). However, a way to reduce the impact would be for
> > netifd to restart transmission if crashed. Can that be done already, or
> > inittab is the only option?
> 
> procd can do that. E.g. a sample init.d/service file:
> 
> #!/bin/sh /etc/rc.common

Thank you for the replies. I'll try to modify transmission for that,
unless someone is faster to it.

regards,
Nikos
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list