From 6a7f2dcdb8498726a9054e1ef5b9dcf6f2339fbd Mon Sep 17 00:00:00 2001 From: Robert Vogelgesang Date: Fri, 4 Apr 2014 19:04:03 +0200 Subject: [PATCH] Move lxc-monitord.log out of /var/lib/lxc/ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Place log file into LOGPATH instead of LXCPATH (but still use the given lxcpath if the latter differs from LXCPATH). Signed-off-by: Robert Vogelgesang Acked-by: Stéphane Graber --- src/lxc/lxc_monitord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc_monitord.c b/src/lxc/lxc_monitord.c index 8f7e6b0a2..6328bf845 100644 --- a/src/lxc/lxc_monitord.c +++ b/src/lxc/lxc_monitord.c @@ -360,7 +360,7 @@ int main(int argc, char *argv[]) } ret = snprintf(logpath, sizeof(logpath), "%s/lxc-monitord.log", - lxcpath); + (strcmp(LXCPATH, lxcpath) ? lxcpath : LOGPATH ) ); if (ret < 0 || ret >= sizeof(logpath)) return EXIT_FAILURE; -- 2.47.2