Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686102 - Add support for rc_log_path='/dev/kmsg'
Summary: Add support for rc_log_path='/dev/kmsg'
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-16 14:18 UTC by Paul Gover
Modified: 2019-05-17 07:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info openrc (file_686102.txt,7.51 KB, text/plain)
2019-05-16 14:18 UTC, Paul Gover
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Gover 2019-05-16 14:18:33 UTC
Created attachment 576926 [details]
emerge --info openrc

One of the long time things I'd like is for openrc to record its activity in syslog.  Putting "rc_logger=YES" I can create (by default) /var/log/rc.log, but I'd rather have it sent to syslog where the entries should be timestamped, filterable, and so forth.  I had a bright idea (I have many :-) ):
  rc_log_path='/dev/kmsg'
but my syslog now contains
  May 16 13:56:23 openrc[2072]: Error: write(/dev/kmsg) failed: Invalid argument
  May 16 13:56:23 openrc[2072]: Warning: temporary logfile left behind: /run/openrc/rc.log

OK, I've not lost anything, but it could be better!
Comment 1 Paul Gover 2019-05-17 07:21:22 UTC
A slightly brighter idea - rather than specifying
   rc_log_path='/dev/kmsg'
it would look better, and perhaps allow for different OS's, to be
   rc_logger=Syslog
as an alternative to Yes or No.

I appreciate limitations on logging daemon availability might create similar restrictions to the current "rc_logging doesn't start until after sysinit runlevel is complete".