Browse Source

instance: dump user and group as well

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Hans Dedecker 5 years ago
parent
commit
01f3dc8b50
1 changed files with 6 additions and 0 deletions
  1. 6 0
      service/instance.c

+ 6 - 0
service/instance.c

@@ -1157,6 +1157,12 @@ void instance_dump(struct blob_buf *b, struct service_instance *in, int verbose)
 	if (in->pidfile)
 		blobmsg_add_string(b, "pidfile", in->pidfile);
 
+	if (in->user)
+		blobmsg_add_string(b, "user", in->user);
+
+	if (in->group)
+		blobmsg_add_string(b, "group", in->group);
+
 	if (in->has_jail) {
 		void *r = blobmsg_open_table(b, "jail");
 		if (in->jail.name)