ignore ability to init /lxc-monitord.log

We may long-term want to instead decide on a convention under
/var/log, but for now just ignore it.  This will only happen
if lxcpath is read-only.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Serge Hallyn 2013-09-12 11:17:11 -05:00
parent b45c701178
commit b336d7246a

View File

@ -342,7 +342,7 @@ int main(int argc, char *argv[])
ret = lxc_log_init(NULL, logpath, "NOTICE", "lxc-monitord", 0, lxcpath);
if (ret)
return ret;
INFO("Failed to open log file %s, log will be lost", lxcpath);
pipefd = atoi(argv[2]);