service: rename variables / struct members called stdout, stderr to avoid conflicts...
[project/procd.git] / service / instance.h
index a492f387eaa2bd3d4c8caf8d60e88ae95b602d9a..93e18f94b3d27f10e795face75396f87257df9fa 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <libubox/vlist.h>
 #include <libubox/uloop.h>
+#include <libubox/ustream.h>
 #include "../utils/utils.h"
 
 #define RESPAWN_ERROR  (5 * 60)
@@ -29,6 +30,9 @@ struct service_instance {
        int8_t nice;
        bool valid;
 
+       uid_t uid;
+       gid_t gid;
+
        bool halt;
        bool restart;
        bool respawn;
@@ -42,6 +46,8 @@ struct service_instance {
        struct blob_attr *config;
        struct uloop_process proc;
        struct uloop_timeout timeout;
+       struct ustream_fd _stdout;
+       struct ustream_fd _stderr;
 
        struct blob_attr *command;
        struct blob_attr *trigger;