diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-09-23 04:19:27 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-09-23 04:19:27 +0200 |
commit | f67b20729126656cfff90de2750617641deeb80b (patch) | |
tree | f2bf4c0afce13dc45a540776645be53e3f1ed386 | |
parent | added minimum runtime for clients in kill-oldest policy (diff) |
updated manpage
-rw-r--r-- | doc/dropnroll.8 | 10 | ||||
-rw-r--r-- | doc/dropnroll.8.txt | 5 | ||||
-rw-r--r-- | src/options.c | 2 |
3 files changed, 14 insertions, 3 deletions
diff --git a/doc/dropnroll.8 b/doc/dropnroll.8 index 2120d14..cdb763b 100644 --- a/doc/dropnroll.8 +++ b/doc/dropnroll.8 @@ -2,12 +2,12 @@ .\" Title: dropnroll .\" Author: [see the "AUTHORS" section] .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> -.\" Date: 09/20/2015 +.\" Date: 09/23/2015 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "DROPNROLL" "8" "09/20/2015" "\ \&" "\ \&" +.TH "DROPNROLL" "8" "09/23/2015" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -45,6 +45,7 @@ dropnroll \- drop\*(Aqn\*(Aqroll daemon [ \fB\-x|\-\-script\fR <script> ] [ \fB\-m|\-\-max\-children\fR <#of children> ] [ \fB\-p|\-\-children\-policy\fR (defer|drop|kill\-oldest) ] + [ \fB\-r|\-\-children\-min\-runtime\fR <secs> ] [ \fB\-d|\-\-dir\fR <path> ] .fi .SH "DESCRIPTION" @@ -186,6 +187,11 @@ kill the oldest child (using SIGKILL) .RE .RE .PP +\fB\-r|\-\-children\-min\-runtime \fR\fB\fI<secs>\fR\fR +.RS 4 +For the kill\-oldest policy this sets the minimum number of seconds a child needs to run before it can be killed\&. +.RE +.PP \fB\-d|\-\-dir \fR\fB\fI<path>\fR\fR .RS 4 Add diff --git a/doc/dropnroll.8.txt b/doc/dropnroll.8.txt index 0a8993d..2172f4f 100644 --- a/doc/dropnroll.8.txt +++ b/doc/dropnroll.8.txt @@ -24,6 +24,7 @@ dropnroll [ -x|--script <script> ] [ -m|--max-children <#of children> ] [ -p|--children-policy (defer|drop|kill-oldest) ] + [ -r|--children-min-runtime <secs> ] [ -d|--dir <path> ] .... @@ -111,6 +112,10 @@ The following options can be passed to the *dropnroll* daemon: 'drop';; ingore the new file and don't call *--script* 'kill-oldest';; kill the oldest child (using SIGKILL) +*-r|--children-min-runtime '<secs>'*:: + For the kill-oldest policy this sets the minimum number of seconds a child needs to run + before it can be killed. + *-d|--dir '<path>'*:: Add '<path>' to the watch list. This can be invoked serveral times. diff --git a/src/options.c b/src/options.c index 7547093..18f5ebc 100644 --- a/src/options.c +++ b/src/options.c @@ -290,7 +290,7 @@ void options_print_usage() printf(" [-m|--max-children] <#of children> limit of children to be started e.g. 8\n"); printf(" [-p|--children-policy] (defer|drop|kill-oldest)\n"); printf(" what to do when children limit exceeds\n"); - printf(" [-r|--children-min-runtime] in case of kill-oldest the minimum child runtime\n"); + printf(" [-r|--children-min-runtime] <secs> in case of kill-oldest the minimum child runtime\n"); printf(" [-d|--dir] <path> add a path to the watch list, can be invoked several times\n"); } |