Bug 5558 - accept FIFOs ("|<path>") as log destinations in /etc/syslog.conf
Summary: accept FIFOs ("|<path>") as log destinations in /etc/syslog.conf
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.22.x
Hardware: PC Linux
: P5 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 19:06 UTC by Christoph Schulz
Modified: 2014-09-10 13:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
allows entries with a FIFO as log destination in /etc/syslog.conf (712 bytes, patch)
2012-09-20 19:06 UTC, Christoph Schulz
Details
allows entries with a FIFO as log destination in /etc/syslog.conf (1.04 KB, patch)
2012-10-06 05:59 UTC, Christoph Schulz
Details
allows entries with a FIFO as log destination in /etc/syslog.conf (1.04 KB, patch)
2014-09-10 13:58 UTC, Christoph Schulz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Schulz 2012-09-20 19:06:16 UTC
Created attachment 4556 [details]
allows entries with a FIFO as log destination in /etc/syslog.conf

Hello,

sysklogd accepts something like "kern.info |/var/log/kernel-info", where /var/log/kernel-info is a pre-created FIFO. The syslogd man page says:

  This  version  of  syslogd has support for logging output to named pipes
  (fifos).  A fifo or named pipe can be used as a destination for log messages
  by  prepending  a pipy  symbol  (``|'')  to  the name of the file.  This is
  handy for debugging.  Note that the fifo must be created with the mkfifo
  command before syslogd is started.

I attached a small patch (applies to busybox 1.20.2) which modifies syslogd.c to handle such targets, too.


Regards,

Christoph Schulz
Comment 1 Christoph Schulz 2012-10-06 05:59:55 UTC
Created attachment 4586 [details]
allows entries with a FIFO as log destination in /etc/syslog.conf

now ignores SIGPIPE
Comment 2 Christoph Schulz 2014-09-10 13:57:37 UTC
Version set to busybox 1.22.1.
Comment 3 Christoph Schulz 2014-09-10 13:58:26 UTC
Created attachment 5606 [details]
allows entries with a FIFO as log destination in /etc/syslog.conf

Submitted patch updated to busybox 1.22.1.