]> git.proxmox.com Git - mirror_lxc.git/commitdiff
ignore ability to init /lxc-monitord.log
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Sep 2013 16:17:11 +0000 (11:17 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Sep 2013 16:17:16 +0000 (11:17 -0500)
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>
src/lxc/lxc_monitord.c

index fda6cf4b52743fdeaef9ee1a7a8f994498c2f206..404934588c4b7bf92da8af07b15bd872c8c66c33 100644 (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]);