#! /bin/sh
# Copyright 2017 Cumulus Networks, Inc.  All rights reserved

# Helper script for bootlog.service
# Capture the bootup log information from the journal. rotate boot logs first.

export PATH=/bin:/usr/bin:/sbin:/usr/sbin

logrotate -f /etc/logrotate.d/bootlog
journalctl -l -o short-precise --no-pager --boot > /var/log/boot.log
