projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
455aca9
)
instance: dump user and group as well
author
Hans Dedecker
<dedeckeh@gmail.com>
Tue, 30 Apr 2019 19:49:26 +0000
(21:49 +0200)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Thu, 2 May 2019 10:59:58 +0000
(12:59 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
service/instance.c
patch
|
blob
|
history
diff --git
a/service/instance.c
b/service/instance.c
index d15acd4b08aa7661b0eeb98224e47ce5104a81b2..b4284e7560545938875e2774df2380b65f380d29 100644
(file)
--- a/
service/instance.c
+++ b/
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)