]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Move lxc-monitord.log out of /var/lib/lxc/
authorRobert Vogelgesang <vogel@users.sourceforge.net>
Fri, 4 Apr 2014 17:04:03 +0000 (19:04 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 4 Apr 2014 21:45:35 +0000 (17:45 -0400)
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 <vogel@users.sourceforge.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc_monitord.c

index 8f7e6b0a25a33ad6c2a9ab0789010841ea4e7675..6328bf845924ee81008837b015b3792d00e0c62b 100644 (file)
@@ -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;