LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2016, 06:58 AM   #1
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Rep: Reputation: Disabled
Arch linux boot.log file


Hello All

I'm used to check for errors while booting OS. If I miss, I usually find it in /var/log/boot.log file.

I just install Arch Linux, and I find that there is no boot.log file in /var/log directory. I searched arch docs, but could not find any guide on how to create boot.log file.

How to create boot.log file in arch linux, like the one in redhat/fedora.

Thanks

Last edited by mangya; 08-10-2016 at 08:06 AM.
 
Old 08-10-2016, 11:48 AM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,031
Blog Entries: 11

Rep: Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226
You could write a systemd service file to run "dmesg > /var/log/boot.log" and make it a requirement of your base level. The ExecStart would have to call the shell explicitly with the rest of the command as an argument, because a command directly executed by systemd can't do redirection.

Last edited by hazel; 08-10-2016 at 11:57 AM. Reason: Method correction
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File permission for /var/log/boot.log are supposed to be 600 but keep changing to 644 Rogue45 Linux - Newbie 1 09-07-2012 11:06 AM
startx command fails to start x in arch, nor does it leave any log file behind Kokomoka Linux - Software 2 07-19-2012 04:58 AM
[SOLVED] Won't boot: /etc/rc.d/init.d/rc: line 193: /var/log/boot.log: Read-only file system liquidkaleidoscopes Linux From Scratch 6 11-11-2011 09:53 PM
Embedded Linux - Preserve log file thats cleared on boot Eamo Linux - Software 3 09-24-2007 09:10 AM
Does Linux write what happens at boot to a file ? I can't find anything in var/log . lostboy Linux - General 8 05-07-2003 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration