Bug 787503 - /usr/bin/logger no longer works because /dev/log does not exist
Summary: /usr/bin/logger no longer works because /dev/log does not exist
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-05 20:11 UTC by Wendell Baker
Modified: 2013-02-01 17:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-01 17:09:39 UTC
Type: ---


Attachments (Terms of Use)

Description Wendell Baker 2012-02-05 20:11:41 UTC
Description of problem:

$ logger hi there; echo exit $?
exit 0

nothing appears in /var/log/messages

strace shows that /dev/log is opened but there's nobody home.

socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 1
connect(1, {sa_family=AF_FILE, path="/dev/log"}, 110) = -1 ENOENT (No such file or directory)


Version-Release number of selected component (if applicable):

 rpm -q -f /usr/bin/logger
util-linux-2.20.1-4.fc17.i686


How reproducible:

very

Steps to Reproduce:
1. strace logger hi there
2.
3.
  
Actual results:

nothing in /var/log/messages

Expected results:

something in /var/log/messages

Additional info:

rsyslog is operating and happy

sudo tail /var/log/messages
Feb  5 11:47:58 fishnet-effect NetworkManager[12405]: DHCPREQUEST on p2p1 to 192.168.0.28 port 67 (xid=0x41690408)
Feb  5 11:47:58 fishnet-effect NetworkManager[12405]: DHCPACK from 192.168.0.28 (xid=0x41690408)
Feb  5 11:47:58 fishnet-effect NetworkManager[12405]: bound to 192.168.0.99 -- renewal in 713 seconds.
Feb  5 11:52:38 fishnet-effect kernel: Kernel logging (proc) stopped.
Feb  5 11:52:38 fishnet-effect rsyslogd: [origin software="rsyslogd" swVersion="5.8.7" x-pid="4706" x-info="http://www.rsyslog.com"] exiting on signal 15.
Feb  5 11:52:38 fishnet-effect kernel: imklog 5.8.7, log source = /proc/kmsg started.
Feb  5 11:52:38 fishnet-effect rsyslogd: [origin software="rsyslogd" swVersion="5.8.7" x-pid="4856" x-info="http://www.rsyslog.com"] start
Feb  5 11:59:51 fishnet-effect NetworkManager[12405]: DHCPREQUEST on p2p1 to 192.168.0.28 port 67 (xid=0x41690408)
Feb  5 11:59:51 fishnet-effect NetworkManager[12405]: DHCPACK from 192.168.0.28 (xid=0x41690408)
Feb  5 11:59:51 fishnet-effect NetworkManager[12405]: bound to 192.168.0.99 -- renewal in 861 seconds.

Comment 1 Karel Zak 2012-07-17 12:48:21 UTC
I'm not able to reproduce this problem on the current F16 and F17.

# logger abcd; grep "abcd" /var/log/messages
Jul 17 14:47:50 x2 kzak: abcd


Note You need to log in before you can comment on or make changes to this bug.