services: dovecot: Allow to set 'process-limit'.
* doc/guix.texi (Mail Services): Update accordingly. * gnu/services/mail.scm (service-configuration)[process-limit]: New field. (dovecot-configuration)[services]: Set 'process-limit' to its correct default value.
This commit is contained in:
parent
8d9bb4b4d0
commit
be8dd4a5fe
|
@ -14364,6 +14364,15 @@ Number of connections to handle before starting a new process.
|
||||||
Typically the only useful values are 0 (unlimited) or 1. 1 is more
|
Typically the only useful values are 0 (unlimited) or 1. 1 is more
|
||||||
secure, but 0 is faster. <doc/wiki/LoginProcess.txt>.
|
secure, but 0 is faster. <doc/wiki/LoginProcess.txt>.
|
||||||
Defaults to @samp{1}.
|
Defaults to @samp{1}.
|
||||||
|
|
||||||
|
@end deftypevr
|
||||||
|
|
||||||
|
@deftypevr {@code{service-configuration} parameter} non-negative-integer process-limit
|
||||||
|
Maximum number of processes that can exist for this service. If set to
|
||||||
|
0, @code{default-process-limit} is used instead.
|
||||||
|
|
||||||
|
Defaults to @samp{0}.
|
||||||
|
|
||||||
@end deftypevr
|
@end deftypevr
|
||||||
|
|
||||||
@deftypevr {@code{service-configuration} parameter} non-negative-integer process-min-avail
|
@deftypevr {@code{service-configuration} parameter} non-negative-integer process-min-avail
|
||||||
|
|
|
@ -301,6 +301,10 @@ used instead.")
|
||||||
"Number of connections to handle before starting a new process.
|
"Number of connections to handle before starting a new process.
|
||||||
Typically the only useful values are 0 (unlimited) or 1. 1 is more
|
Typically the only useful values are 0 (unlimited) or 1. 1 is more
|
||||||
secure, but 0 is faster. <doc/wiki/LoginProcess.txt>.")
|
secure, but 0 is faster. <doc/wiki/LoginProcess.txt>.")
|
||||||
|
(process-limit
|
||||||
|
(non-negative-integer 0)
|
||||||
|
"Maximum number of processes that can exist for this service. If set to 0,
|
||||||
|
@code{default-process-limit} is used instead.")
|
||||||
(process-min-avail
|
(process-min-avail
|
||||||
(non-negative-integer 0)
|
(non-negative-integer 0)
|
||||||
"Number of processes to always keep waiting for more connections.")
|
"Number of processes to always keep waiting for more connections.")
|
||||||
|
@ -482,6 +486,7 @@ complex, customize the address and port fields of the
|
||||||
(service-configuration
|
(service-configuration
|
||||||
(kind "imap-login")
|
(kind "imap-login")
|
||||||
(client-limit 0)
|
(client-limit 0)
|
||||||
|
(process-limit 0)
|
||||||
(listeners
|
(listeners
|
||||||
(list
|
(list
|
||||||
(inet-listener-configuration (protocol "imap") (port 143) (ssl? #f))
|
(inet-listener-configuration (protocol "imap") (port 143) (ssl? #f))
|
||||||
|
@ -495,14 +500,17 @@ complex, customize the address and port fields of the
|
||||||
(service-configuration
|
(service-configuration
|
||||||
(kind "lmtp")
|
(kind "lmtp")
|
||||||
(client-limit 1)
|
(client-limit 1)
|
||||||
|
(process-limit 0)
|
||||||
(listeners
|
(listeners
|
||||||
(list (unix-listener-configuration (path "lmtp") (mode "0666")))))
|
(list (unix-listener-configuration (path "lmtp") (mode "0666")))))
|
||||||
(service-configuration
|
(service-configuration
|
||||||
(kind "imap")
|
(kind "imap")
|
||||||
(client-limit 1))
|
(client-limit 1)
|
||||||
|
(process-limit 1024))
|
||||||
(service-configuration
|
(service-configuration
|
||||||
(kind "pop3")
|
(kind "pop3")
|
||||||
(client-limit 1))
|
(client-limit 1)
|
||||||
|
(process-limit 1024))
|
||||||
(service-configuration (kind "auth")
|
(service-configuration (kind "auth")
|
||||||
;; In what could be taken to be a bug, the default value of 1 for
|
;; In what could be taken to be a bug, the default value of 1 for
|
||||||
;; service-count makes it so that a PAM auth worker can't fork off
|
;; service-count makes it so that a PAM auth worker can't fork off
|
||||||
|
@ -514,14 +522,17 @@ complex, customize the address and port fields of the
|
||||||
;; 30.
|
;; 30.
|
||||||
(service-count 30)
|
(service-count 30)
|
||||||
(client-limit 0)
|
(client-limit 0)
|
||||||
|
(process-limit 1)
|
||||||
(listeners
|
(listeners
|
||||||
(list (unix-listener-configuration (path "auth-userdb")))))
|
(list (unix-listener-configuration (path "auth-userdb")))))
|
||||||
(service-configuration
|
(service-configuration
|
||||||
(kind "auth-worker")
|
(kind "auth-worker")
|
||||||
(client-limit 1))
|
(client-limit 1)
|
||||||
|
(process-limit 0))
|
||||||
(service-configuration
|
(service-configuration
|
||||||
(kind "dict")
|
(kind "dict")
|
||||||
(client-limit 1)
|
(client-limit 1)
|
||||||
|
(process-limit 0)
|
||||||
(listeners (list (unix-listener-configuration (path "dict")))))))
|
(listeners (list (unix-listener-configuration (path "dict")))))))
|
||||||
"List of services to enable. Available services include @samp{imap},
|
"List of services to enable. Available services include @samp{imap},
|
||||||
@samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and
|
@samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and
|
||||||
|
|
Loading…
Reference in New Issue