Project

General

Profile

Actions

Feature #2696

closed

[PATCH] support -i <secs> idle timeout option

Added by mackyle over 9 years ago. Updated almost 9 years ago.

Status:
Fixed
Priority:
Low
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

After <secs> of no activity the server will initiate a graceful
shutdown. Defaults to off (0).

This is particularly useful with something like git instaweb
that continues to spawn new server processes automatically but
does not automatically stop them.

Patch file attached.

See also http://repo.or.cz/lighttpd/svnmirror/patches.git/commitdiff/476d2d78


Files

Added by gstrauss almost 9 years ago

Revision 06b87dee (diff)

[core] cmd line opt to shutdown after idle time limit (fixes #2696)

-i <secs> graceful shutdown after <secs> of inactivity

Option might be used with applications such as git instaweb.
While git instaweb does have command line options of its own
to [start,stop,restart], some may find it convenient to configure
git instaweb to start lighttpd with a default idle time limit,
after which lighttpd will gracefully shut itself down without
any further action from the user.

x-ref:
"[PATCH] support -i <secs> idle timeout option"
https://redmine.lighttpd.net/issues/2696
original request and patch submitted by mackyle. thx.

Added by gstrauss almost 9 years ago

Revision 89379011

lighttpd run modes for idle timeout, one-shot

lighttpd -i <secs> shutdown after idle time limit (fixes #2696)
lighttpd -1 handles single request on stdin socket (fixes #1584)

Merge branch 'feature-2696-idle-shutdown' into master

github: closes #43

Actions

Also available in: Atom