summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.1
diff options
context:
space:
mode:
authorSami Kerola2014-06-28 17:08:28 +0200
committerSami Kerola2014-07-28 22:15:18 +0200
commitaab5b44405b9a6ada92e419e5a84cc0d1d4afee9 (patch)
tree6c9be6b72af4bc928242f4ccc1464f8db9660849 /misc-utils/logger.1
parentdocs: add logger protocol notes to manual page (diff)
downloadkernel-qcow2-util-linux-aab5b44405b9a6ada92e419e5a84cc0d1d4afee9.tar.gz
kernel-qcow2-util-linux-aab5b44405b9a6ada92e419e5a84cc0d1d4afee9.tar.xz
kernel-qcow2-util-linux-aab5b44405b9a6ada92e419e5a84cc0d1d4afee9.zip
logger: add process --id=parent optional argument
When scripts send several messages they will be easier to group together when parent process id is printed rather than id of the each logger process. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/logger.1')
-rw-r--r--misc-utils/logger.110
1 files changed, 7 insertions, 3 deletions
diff --git a/misc-utils/logger.1 b/misc-utils/logger.1
index a624f44fb..1a366db00 100644
--- a/misc-utils/logger.1
+++ b/misc-utils/logger.1
@@ -56,9 +56,13 @@ port defined in /etc/services, which is often
\fB\-h\fR, \fB\-\-help\fR
Display help text and exit.
.TP
-\fB\-i\fR, \fB\-\-id\fR
-Log the process ID of the logger process with each line.
-.TP
+\fB\-i\fR, \fB\-\-id\fR=[\fBppid\fR|\fBpid\fR]
+Log the PID of the logger process with each line. When optional
+argument
+.B ppid
+is specified PPID is used instead of logger command PID. Use of
+.B ppid
+is recommended in scripts that send several messages.
.TP
\fB\-n\fR, \fB\-\-server\fR \fIserver\fR
Write to the specified remote syslog