]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: allow to retrieve lxc.rebootsignal
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 May 2017 15:38:49 +0000 (17:38 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 May 2017 16:43:08 +0000 (18:43 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 5d9c8800a4220b852d6d64f0170ea68386b42de3..de06314135366e1bccdb1e5298abc9a47ba31ef2 100644 (file)
@@ -3106,6 +3106,8 @@ int lxc_get_config_item(struct lxc_conf *c, const char *key, char *retv,
                return lxc_get_idmaps(c, retv, inlen);
        else if (strcmp(key, "lxc.haltsignal") == 0)
                return lxc_get_conf_int(c, retv, inlen, c->haltsignal);
+       else if (strcmp(key, "lxc.rebootsignal") == 0)
+               return lxc_get_conf_int(c, retv, inlen, c->rebootsignal);
        else return -1;
 
        if (!v)