From 71af2a32da251505d02769a32c979d5ccd1e49fa Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Sat, 6 Nov 2004 15:38:33 +0000 Subject: * svlogd.c: new config option t timeout; config options e and E select and deselect lines for stderr respectively; new config option N. * man/svlogd.8: adapt. * runsv.c: on commands down and exit send CONT after TERM. * man/runsv.8: adapt. * etc/2: use -P option to runsvdir. * src/svlogd.check: end check for t config option. * chpst.c: new option -n: adjust nice level. * man/chpst.8: adapt. --- man/chpst.8 | 13 +++++++++++++ man/runsv.8 | 4 ++-- man/svlogd.8 | 52 +++++++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 58 insertions(+), 11 deletions(-) (limited to 'man') diff --git a/man/chpst.8 b/man/chpst.8 index 6ca593f..ae158cb 100644 --- a/man/chpst.8 +++ b/man/chpst.8 @@ -12,6 +12,8 @@ chpst \- runs a program with a changed process state .IR dir ] [\-/ .IR root ] +[\-n +.IR inc ] [-l|-L .IR lock ] [-m @@ -105,6 +107,17 @@ Change the root directory to before starting .IR prog . .TP +.B \-n \fIinc +nice. +Add +.I inc +to the +.BR nice (2) +value before starting +.IR prog . +.I inc +must be an integer, and may start with a minus or plus. +.TP .B \-l \fIlock lock. Open the file diff --git a/man/runsv.8 b/man/runsv.8 index 769c7f2..eafad0c 100644 --- a/man/runsv.8 +++ b/man/runsv.8 @@ -79,7 +79,7 @@ If the service stops, restart it. .TP .B d Down. -If the service is running, send it a TERM signal. +If the service is running, send it a TERM signal, and then a CONT signal. If ./run exits, start ./finish if it exists. After it stops, do not restart service. .TP @@ -129,7 +129,7 @@ If the service is running, send it a KILL signal. .TP .B x \fRor \fBe Exit. -If the service is running, send it a TERM signal. +If the service is running, send it a TERM signal, and then a CONT signal. Do not restart the service. If the service is down, and no log service exists, .B runsv diff --git a/man/svlogd.8 b/man/svlogd.8 index 25319bf..86a901f 100644 --- a/man/svlogd.8 +++ b/man/svlogd.8 @@ -73,7 +73,8 @@ bytes or more (or there is a new-line within the last .I len of .I size -bytes) +bytes), or is older than a specified amount of +.IR time , .I current is rotated: .P @@ -192,6 +193,40 @@ old log files in after log file rotation, it deletes the oldest one. Default is 10. .TP +.RI N min +sets the minimum number of old log files +.B svlogd +should maintain to +.IR min . +.I min +must be less than +.IR num . +If +.I min +is set, and +.B svlogd +cannot write to +.I current +because the filesystem is full, and it sees more than +.I min +old log files, it deletes the oldest one. +.TP +.RI t timeout +sets the maximum age of the +.I current +log file when +.B svlogd +should rotate the current log file to +.I timeout +seconds. +If +.I current +is +.I timeout +seconds old, and is not empty, +.B svlogd +forces log file rotation. +.TP .RI ! processor tells .B svlogd @@ -248,21 +283,20 @@ and acts accordingly: the log message is deselected. .TP .RI + pattern -the log message is selected +the log message is selected. .TP .RI e pattern -log messages matching -.I pattern -are printed to standard error. +the log message is selected to be printed to standard error. .TP .RI E pattern -log messages not matching -.I pattern -are printed to standard error. +the log message is deselected to be printed to standard error. .P -Initially each line is selected. +Initially each line is selected to be written to +.IR log/current . Deselected log messages are discarded from .IR log . +Initially each line is deselected to be written to standard err. +Log messages selected for standard error are written to standard error. .SH PATTERN MATCHING .B svlogd matches a log message against the string -- cgit 1.4.1