diff options
| author | Hans Dedecker | 2019-04-30 19:49:26 +0000 |
|---|---|---|
| committer | Hans Dedecker | 2019-05-02 10:59:58 +0000 |
| commit | 01f3dc8b50cf9728c8a70ff9d19143f90c49b786 (patch) | |
| tree | a2be6d56edc8fa06273a62018d7f79febc430db9 | |
| parent | 455aca9b9a0c2d603121a7bcae43abd486762bab (diff) | |
| download | procd-01f3dc8b50cf9728c8a70ff9d19143f90c49b786.tar.gz | |
instance: dump user and group as well
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
| -rw-r--r-- | service/instance.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/service/instance.c b/service/instance.c index d15acd4..b4284e7 100644 --- 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) |