procd: support relayoing daemon stdout/stderr to syslog
[project/procd.git] / service / instance.h
index a492f38..56ce797 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;