diff options
| author | Alexander Barton <alex@barton.de> | 2013-02-04 23:15:53 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-02-04 23:15:53 +0100 |
| commit | f295117fba615333908e707a656b6cd0fb0493ed (patch) | |
| tree | 65ad37bdd62b1850f7f57e8e0a38156a58e71d3f /doc | |
| parent | 8ab097afb743061c6c9b865bdb401ba51285c347 (diff) | |
| download | ngircd-f295117fba615333908e707a656b6cd0fb0493ed.tar.gz ngircd-f295117fba615333908e707a656b6cd0fb0493ed.zip | |
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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/sample-ngircd.conf.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/sample-ngircd.conf.tmpl b/doc/sample-ngircd.conf.tmpl index 1c3998ad..822fd5d4 100644 --- a/doc/sample-ngircd.conf.tmpl +++ b/doc/sample-ngircd.conf.tmpl @@ -88,6 +88,13 @@ # to not yet (or no longer) connected servers. ;ConnectRetry = 60 + # Number of seconds after which the whole daemon should shutdown when + # no connections are left active after handling at least one client + # (0: never, which is the default). + # This can be useful for testing or when ngIRCd is started using + # "socket activation" with systemd(8), for example. + ;IdleTimeout = 0 + # Maximum number of simultaneous in- and outbound connections the # server is allowed to accept (0: unlimited): ;MaxConnections = 0 |