From: acoul Date: Sat, 14 Nov 2015 06:58:09 +0000 (+0200) Subject: package/procd: in a low resource embedded world respawning is lethal. nuke it. X-Git-Url: http://git.ozo.com/?p=openwrt-working-2016%2F.git;a=commitdiff_plain;h=a66730b9f3240fb27bfee2d41e78dfb74c35f43e package/procd: in a low resource embedded world respawning is lethal. nuke it. --- diff --git a/package/system/procd/patches/010-kill_respawn.patch b/package/system/procd/patches/010-kill_respawn.patch new file mode 100644 index 0000000000..00ecfd68c7 --- /dev/null +++ b/package/system/procd/patches/010-kill_respawn.patch @@ -0,0 +1,23 @@ +--- a/service/instance.c ++++ b/service/instance.c +@@ -717,11 +717,16 @@ instance_config_parse(struct service_ins + vals[i] = atoi(blobmsg_get_string(cur2)); + i++; + } +- in->respawn = true; ++// in->respawn = true; ++// in->respawn_count = 0; ++// in->respawn_threshold = vals[0]; ++// in->respawn_timeout = vals[1]; ++// in->respawn_retry = vals[2]; ++ in->respawn = false; + in->respawn_count = 0; +- in->respawn_threshold = vals[0]; +- in->respawn_timeout = vals[1]; +- in->respawn_retry = vals[2]; ++ in->respawn_threshold = 1; ++ in->respawn_timeout = 1; ++ in->respawn_retry = 0; + } + if (tb[INSTANCE_ATTR_TRIGGER]) { + in->trigger = tb[INSTANCE_ATTR_TRIGGER];