]> arthur.barton.de Git - ngircd-alex.git/commit
New configuration option "IdleTimeout": exit daemon when idle
authorAlexander Barton <alex@barton.de>
Mon, 4 Feb 2013 22:15:53 +0000 (23:15 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 4 Feb 2013 22:15:53 +0000 (23:15 +0100)
commitf295117fba615333908e707a656b6cd0fb0493ed
tree65ad37bdd62b1850f7f57e8e0a38156a58e71d3f
parent8ab097afb743061c6c9b865bdb401ba51285c347
New configuration option "IdleTimeout": exit daemon when idle

This patch implements a new configuration option "IdleTimeout" in the
[Limits] section of the configuration file which can be used to set a
timeout (in seconds) after which the whole daemon will shutdown when no
more connections are left active after handling at least one client.

The default is 0, "never".

This can be useful for testing or when ngIRCd is started using "socket
activation" with systemd(8), for example.
doc/sample-ngircd.conf.tmpl
man/ngircd.conf.5.tmpl
src/ngircd/conf.c
src/ngircd/conf.h
src/ngircd/conn.c