| # Copyright 2021 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| description "Job to incorporate early log files into the syslog" |
| author "chromium-os-dev@chromium.org" |
| |
| start on started system-services |
| |
| # Sacrifice before OOM panic. |
| oom score 0 |
| |
| task |
| |
| script |
| # Dump the log in syslog to preserve tmpfiles.d info over reboots. |
| logger -t tmpfiles.d -f /run/tmpfiles.log || true |
| |
| # Dump startup logs to syslog to preserve startup info over reboots. |
| logger -t chromeos-startup -f /run/chromeos_startup.log || true |
| |
| rm -f /run/chromeos_startup.log /run/tmpfiles.log # croslint: disable |
| end script |