[libvirt] [PATCH 5/7] lxc: append container log file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do we really want to overwrite the container log file every time we
restart?
---

 src/lxc/lxc_driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index c5a49f2..73cfecd 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -1037,7 +1037,7 @@ static int lxcVmStart(virConnectPtr conn,
         goto cleanup;
     }
 
-    if ((logfd = open(logfile, O_WRONLY | O_TRUNC | O_CREAT,
+    if ((logfd = open(logfile, O_WRONLY | O_APPEND | O_CREAT,
              S_IRUSR|S_IWUSR)) < 0) {
         virReportSystemError(conn, errno,
                              _("failed to open '%s'"),

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]