service: optimize relaying stdio output of daemons a bit.
[project/procd.git] / service / instance.h
index 93e18f9..3fb33e9 100644 (file)
 
 #define RESPAWN_ERROR  (5 * 60)
 
+struct jail {
+       bool procfs;
+       bool sysfs;
+       bool ubus;
+       bool log;
+       char *name;
+       char *root;
+       struct blobmsg_list mount;
+       int argc;
+};
+
 struct service_instance {
        struct vlist_node node;
        struct service *srv;
@@ -39,6 +50,11 @@ struct service_instance {
        int respawn_count;
        struct timespec start;
 
+       bool trace;
+       bool has_jail;
+       struct jail jail;
+       char *seccomp;
+
        uint32_t respawn_timeout;
        uint32_t respawn_threshold;
        uint32_t respawn_retry;