mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 10:12:24 +00:00
Move lxc-monitord.log out of /var/lib/lxc/
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>
This commit is contained in:
parent
3d3bc9ed7b
commit
6a7f2dcdb8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user