util-linux/misc-utils
Sami Kerola d77dc29e6e logger: add --socket-errors compatibility option
Hello,

Depending viewpoint this change is either regression fix, or
re-regression in context of none-systemd init.  I ack the change is sent
very late to be part of v2.26, but then again the excess noise was found
only because of -rc1 was tested in sysvinit environment.  IMHO it would
contradict purpose of having rc's if faults will not lead to fixes.

I also want to point out the sysvinit scripts are broken, not the
logger(1), but getting them corrected is practically impossible.
Assuming sysvinit script are further developed by various teams and
distributions who maintain them they should use --socket-error=on in
future, and write scripts that pass without noise.  Meanwhile trying to
be clever when to silence errors seems like a reasonable thing to do.

--->8----
From: Sami Kerola <kerolasa@iki.fi>
Date: Sat, 14 Feb 2015 19:05:55 +0000
Subject: [PATCH] logger: add --socket-errors compatibility option

Now when logger(1) has stopped using openlog() for Unix sockets, in
commit mentioned in reference, the lack of /dev/log detected will report
error accordingly.  According to Gabriele Balducci this makes sysvinit
style boot scripts to print a lot of errors.  So make the logger to
detect whether it should be in compatibility mode, and not report errors
if logging device is missing.  That imitates behavior of glibc openlog().

To allow full control to users the /dev/log error messages can be forced
to on or off.  The automatic error messaging is explained in manual page.

Reference: 1d57503378
Reported-by: Gabriele Balducci <balducci@units.it>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-16 11:08:24 +01:00
..
.gitignore chkdupexe: remove, deprecated for years 2013-03-14 13:34:11 +01:00
Makemodule.am build-sys: add BUILD_GETOPT 2014-05-21 13:26:56 +02:00
blkid.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
blkid.c libblkid: care about unsafe chars in cache 2014-11-27 13:39:35 +01:00
cal.1 docs: don't use bold or italics for "[option]" in synopsis of man pages 2014-12-19 09:57:23 +01:00
cal.c cal: use int64_t instead of long 2015-02-10 11:18:51 +01:00
findfs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
findfs.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
findmnt.8 docs: restore minus symbols in long opts 2015-01-20 18:15:30 -05:00
findmnt.c findmnt: don't parse mountinfo twice 2015-02-12 12:57:03 +01:00
getopt-parse.bash build-sys: move getopt to misc-utils/ 2012-06-26 20:48:23 +02:00
getopt-parse.tcsh build-sys: move getopt to misc-utils/ 2012-06-26 20:48:23 +02:00
getopt.1 docs: don't use bold or italics for "[option]" in synopsis of man pages 2014-12-19 09:57:23 +01:00
getopt.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
kill.1 docs: fix many wording and some formatting issues in the man page of kill 2014-07-14 15:49:30 +02:00
kill.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
logger.1 logger: add --socket-errors compatibility option 2015-02-16 11:08:24 +01:00
logger.c logger: add --socket-errors compatibility option 2015-02-16 11:08:24 +01:00
look.1 docs: fix-up man-pages flaged by checkmans.sh 2015-01-13 11:43:46 -05:00
look.c look: remove dead code 2015-01-07 21:57:53 +00:00
lsblk.8 lsblk: implement SOMEOK (=64) return code 2015-01-29 12:35:26 +01:00
lsblk.c lsblk: implement SOMEOK (=64) return code 2015-01-29 12:35:26 +01:00
lslocks.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
lslocks.c lslocks: fix type warning 2015-01-07 10:14:11 +01:00
mcookie.1 docs: adjust some formatting and wordings in a handful of man pages 2014-12-19 09:57:25 +01:00
mcookie.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
namei.1 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
namei.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
rename.1 docs: adjust some formatting and wordings in a handful of man pages 2014-12-19 09:57:25 +01:00
rename.c rename: use strrchr() instead of rindex() 2015-02-10 13:21:23 +01:00
uuidd.8.in docs: sort the options in the man pages of hwclock and uuidd 2014-07-29 12:14:56 +02:00
uuidd.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
uuidd.rc.in uuidd: Fixed a typo in daemon logging message 2014-11-18 14:14:47 +01:00
uuidd.service.in uuidd: remove timeout from systemd service file 2014-04-29 10:37:26 +02:00
uuidd.socket.in build-sys: add missing files 2012-07-11 18:00:09 +02:00
uuidgen.1 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
uuidgen.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
whereis.1 docs: add info about *_DEBUG= to man pages 2015-02-03 11:16:46 +01:00
whereis.c whereis: lookup also info docs 2015-02-02 11:15:47 +01:00
wipefs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
wipefs.c wipefs: fix FD leak on error [coverity scan] 2015-01-29 12:42:58 +01:00