X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=doc%2Fhtparser.doc;h=928e642c9a241c87376820f98c81588dea4262e4;hb=9d82f27c53c5fb79ceee52904b996edefb27628a;hp=9bace5b1c4f7f92725064e0712cec39fa78e7533;hpb=2824afabef34b9bd0aa41644c7da1858d1532da8;p=ashd.git diff --git a/doc/htparser.doc b/doc/htparser.doc index 9bace5b..928e642 100644 --- a/doc/htparser.doc +++ b/doc/htparser.doc @@ -24,7 +24,8 @@ all the 'ARGS' as command-line arguments. Only after that will *htparser* do any daemonizing or chrooting as specified by options. The root handler must be a persistent program as specified in -*ashd*(7). If the handler program exits, *htparser* will exit too. +*ashd*(7). If the handler program exits, *htparser* will exit too, +following the procedure described below under SIGNALS. PORT SPECIFICATION ------------------ @@ -80,6 +81,17 @@ OPTIONS After having daemonized, write the PID of the new process to 'PIDFILE'. +SIGNALS +------- + +SIGTERM, SIGINT:: + + Upon first reception, `htparser` closes all listening ports + and the socket to the root handler, but continues to serve all + currently ongoing requests until none remain, not keeping the + connections open for keep-alive. Upon second reception, + `htparser` shuts down completely. + EXAMPLES --------