procd: set resource limits for service instances
[project/procd.git] / service / service.c
index 4153fec..3ec24c3 100644 (file)
@@ -139,7 +139,7 @@ service_update(struct service *s, struct blob_attr *config, struct blob_attr **t
                        vlist_flush(&s->instances);
        }
 
-       rcnow(s->name, "running");
+       rc(s->name, "running");
 
        return 0;
 }
@@ -446,9 +446,9 @@ service_start_early(char *name, char *cmdline)
        }
        blobmsg_close_array(&b, command);
        respawn = blobmsg_open_array(&b, "respawn");
-       blobmsg_add_string(&b, NULL, "1");
        blobmsg_add_string(&b, NULL, "3600");
-       blobmsg_add_string(&b, NULL, "10");
+       blobmsg_add_string(&b, NULL, "1");
+       blobmsg_add_string(&b, NULL, "0");
        blobmsg_close_array(&b, respawn);
        blobmsg_close_table(&b, instance);
        blobmsg_close_table(&b, instances);