summary refs log tree commit diff
path: root/man
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2004-11-06 15:38:33 +0000
committerGerrit Pape <pape@smarden.org>2004-11-06 15:38:33 +0000
commit71af2a32da251505d02769a32c979d5ccd1e49fa (patch)
tree8a1eb1b91e2801036fad734777dc9cae340fb552 /man
parent267ae0374a33530cd6641d69ae6c115db23f30b6 (diff)
downloadrunit-71af2a32da251505d02769a32c979d5ccd1e49fa.tar.gz
runit-71af2a32da251505d02769a32c979d5ccd1e49fa.tar.xz
runit-71af2a32da251505d02769a32c979d5ccd1e49fa.zip
* 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.
Diffstat (limited to 'man')
-rw-r--r--man/chpst.813
-rw-r--r--man/runsv.84
-rw-r--r--man/svlogd.852
3 files changed, 58 insertions, 11 deletions
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