Browse Source

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

Davin McCall 1 year ago
parent
commit
bdf9f6d5cb
1 changed files with 3 additions and 0 deletions
  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();
     }