dmesg.service 358 B

123456789101112
  1. [Unit]
  2. Description=Save initial kernel messages after boot
  3. [Service]
  4. Type=idle
  5. StandardOutput=file:/var/log/dmesg
  6. ExecStartPre=-/usr/bin/savelog -q -p -n -c 5 /var/log/dmesg
  7. ExecStart=/bin/journalctl --boot 0 --dmesg --output short-monotonic --quiet --no-pager --no-hostname
  8. ExecStartPost=/bin/chgrp adm /var/log/dmesg
  9. [Install]
  10. WantedBy=multi-user.target