package/procd: in a low resource embedded world respawning is lethal. nuke it.
authoracoul <alex@ozo.com>
Sat, 14 Nov 2015 06:58:09 +0000 (08:58 +0200)
committeracoul <alex@ozo.com>
Thu, 31 Mar 2016 05:28:36 +0000 (08:28 +0300)
package/system/procd/patches/010-kill_respawn.patch [new file with mode: 0644]

diff --git a/package/system/procd/patches/010-kill_respawn.patch b/package/system/procd/patches/010-kill_respawn.patch
new file mode 100644 (file)
index 0000000..00ecfd6
--- /dev/null
@@ -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];