X-Git-Url: http://git.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Finstance.h;h=93e18f94b3d27f10e795face75396f87257df9fa;hp=a492f387eaa2bd3d4c8caf8d60e88ae95b602d9a;hb=b6777a45becef915d6a99f01e044ad508bb278c6;hpb=53c1ea6b9ade10eff3cec07519db862b365a4233 diff --git a/service/instance.h b/service/instance.h index a492f38..93e18f9 100644 --- a/service/instance.h +++ b/service/instance.h @@ -17,6 +17,7 @@ #include #include +#include #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;