From a66730b9f3240fb27bfee2d41e78dfb74c35f43e Mon Sep 17 00:00:00 2001 From: acoul Date: Sat, 14 Nov 2015 08:58:09 +0200 Subject: [PATCH] package/procd: in a low resource embedded world respawning is lethal. nuke it. --- .../procd/patches/010-kill_respawn.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/system/procd/patches/010-kill_respawn.patch 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]; -- 2.35.1