X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Finstance.h;h=3cc20093f810176e842920e197e2d336b4b712fe;hp=5a768418fc5cd38abcabedb808648f1682f6dd87;hb=f800ecf860addd4fc7f1acde76a9adbd4b1f50e7;hpb=fda5f9c30bdb440c41fcfa3fa6445b7b0fa998ce diff --git a/service/instance.h b/service/instance.h index 5a76841..3cc2009 100644 --- a/service/instance.h +++ b/service/instance.h @@ -27,7 +27,9 @@ struct jail { bool sysfs; bool ubus; bool log; + bool ronly; char *name; + char *hostname; struct blobmsg_list mount; int argc; }; @@ -47,12 +49,15 @@ struct service_instance { bool restart; bool respawn; int respawn_count; + int reload_signal; struct timespec start; bool trace; bool has_jail; + bool no_new_privs; struct jail jail; char *seccomp; + char *pidfile; uint32_t respawn_timeout; uint32_t respawn_threshold; @@ -76,7 +81,7 @@ struct service_instance { void instance_start(struct service_instance *in); void instance_stop(struct service_instance *in); -bool instance_update(struct service_instance *in, struct service_instance *in_new); +void instance_update(struct service_instance *in, struct service_instance *in_new); void instance_init(struct service_instance *in, struct service *s, struct blob_attr *config); void instance_free(struct service_instance *in); void instance_dump(struct blob_buf *b, struct service_instance *in, int debug);