diff options
author | Gerrit Pape <pape@smarden.org> | 2006-04-10 06:09:37 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2006-04-10 06:09:37 +0000 |
commit | d8f520b5026bc2c5c67c95c46699b48daa5c77c1 (patch) | |
tree | ad1700ded6de901cc05e1852f76133ade0b52afd /man | |
parent | 59180db736d88ad8e02686b192f4f8c33e95783a (diff) | |
download | runit-d8f520b5026bc2c5c67c95c46699b48daa5c77c1.tar.gz runit-d8f520b5026bc2c5c67c95c46699b48daa5c77c1.tar.xz runit-d8f520b5026bc2c5c67c95c46699b48daa5c77c1.zip |
* man/runsvdir.8: document that the services directory is re-scanned if
the time of last modification, the inode, or the device has changed. * sv.c: don't report success on 'sv start' if the service is in state finish (thx Matthew R. Dempsky). * svlogd.c: new config line p: optionally prefix each line written to logs, stderr, or through udp; no longer skip empty lines (just containing '\n'), old behavior can be restored with '-' in config. * man/svlogd.8: document new p config line; adapt. 1.5.0.
Diffstat (limited to 'man')
-rw-r--r-- | man/runsvdir.8 | 23 | ||||
-rw-r--r-- | man/svlogd.8 | 10 |
2 files changed, 20 insertions, 13 deletions
diff --git a/man/runsvdir.8 b/man/runsvdir.8 index 7aa7249..adfa587 100644 --- a/man/runsvdir.8 +++ b/man/runsvdir.8 @@ -18,9 +18,13 @@ characters long or absent. .B runsvdir starts a .BR runsv (8) -process for each subdirectory in the services directory +process for each subdirectory, or symlink to a directory, in the services +directory .IR dir , -up to a limit of 1000 subdirectories. +up to a limit of 1000 subdirectories, +and restarts a +.BR runsv (8) +process if it terminates. .B runsvdir skips subdirectory names starting with dots. .BR runsv (8) @@ -30,20 +34,17 @@ PATH. .P At least every five seconds .B runsvdir -checks whether the services directory +checks whether the time of last modification, the inode, or the device, of +the services directory .I dir has changed. -If it sees a new subdirectory in +If so, it re-scans the service directory, and if it sees a new subdirectory, +or new symlink to a directory, in .IR dir , it starts a new .BR runsv (8) -process. -If it sees an old sudirectory where a -.BR runsv (8) -process has exited, it restarts the -.BR runsv (8) -process. -If +process; +if .B runsvdir sees a subdirectory being removed that was previously there, it sends the corresponding diff --git a/man/svlogd.8 b/man/svlogd.8 index 677ff8e..e8b03b7 100644 --- a/man/svlogd.8 +++ b/man/svlogd.8 @@ -158,8 +158,7 @@ exists, and if so, reads the file line by line and adjusts configuration for .I log as follows: .P -If the line is empty, less than two characters long, or starts with a ``#'', -it is ignored. +If the line is empty, or starts with a ``#'', it is ignored. A line of the form .TP .RI s size @@ -272,6 +271,13 @@ but transmitted through udp only. Error messages from .B svlogd concerning sending udp packages still go to the log directory. +.TP +.RI p prefix +tells +.B svlogd +to prefix each line to be written to the log directory, to standard error, +or through UDP, with +.IR prefix . .P If a line starts with a .IR \- , |