package/procd: kill netifd & ubusd
authorAlexandros Couloumbis <alex@ozo.com>
Tue, 17 Oct 2017 13:25:21 +0000 (16:25 +0300)
committerAlexandros Couloumbis <alex@ozo.com>
Tue, 17 Oct 2017 13:25:21 +0000 (16:25 +0300)
package/system/procd/patches/100-kill_respawn.patch [new file with mode: 0644]

diff --git a/package/system/procd/patches/100-kill_respawn.patch b/package/system/procd/patches/100-kill_respawn.patch
new file mode 100644 (file)
index 0000000..34db1e1
--- /dev/null
@@ -0,0 +1,19 @@
+--- a/service/instance.c       2016-07-21 20:21:25.266397717 +0300
++++ b/service/instance.c       2016-07-21 20:23:26.188827064 +0300
+@@ -788,11 +788,11 @@ instance_config_parse(struct service_ins
+                       vals[i] = atoi(blobmsg_get_string(cur2));
+                       i++;
+               }
+-              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 = 1;
++              in->respawn_threshold = 1;
++              in->respawn_timeout = 1;
++              in->respawn_retry = 1;
+       }
+       if (tb[INSTANCE_ATTR_TRIGGER]) {
+               in->trigger = tb[INSTANCE_ATTR_TRIGGER];