Browse Source

If logging to file, attempt to open when root fs becomes writable

Davin McCall 1 năm trước cách đây
mục cha
commit
bdf9f6d5cb
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/dinit.cc

+ 3 - 0
src/dinit.cc

@@ -806,6 +806,9 @@ void rootfs_is_rw() noexcept
         open_control_socket(true);
         control_socket_ready();
     }
+    if (!log_is_syslog) {
+        setup_external_log();
+    }
     if (!did_log_boot) {
         did_log_boot = log_boot();
     }