Re: cyrus 2.4.17 -- file descriptor limit set to -1?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



RLIM_INFINITY is defined as ~0ULL, at least on my system. If it's cast to a signed value, that will come out at -1, no?

My problem with systemd isn't that it doesn't work, it's that it's all-pervasive and viral, and forces people who've been using standard unix mechanisms for 20 years to learn something completely different for no visible concrete advantage.

As a user rather than a sysadmin it seems I have to spend most of my time learning new ways to do exactly the same things without gaining anything. Frankly I'm past the point where I want to fiddle with Linux for hours to make it do what I want. But that seems to be the Linux Way these days, see eg ip vs ifconfig, iptables vs ipchains, &c &c &c. 

On 15 January 2015 at 11:04, Patrick Goetz <pgoetz@xxxxxxxxxxxxxxx> wrote:
I'm firing up cyrus 2.4.17 for the first time on a new platform (Arch
linux w/ systemd) and noticed the following error message (running
journalctl -u cyrus-master):

Jan 15 04:08:50 ibis cyrus/master[701]: setrlimit: Unable to set file
descriptors limit to -1: Operation not permitted
Jan 15 04:08:50 ibis cyrus/master[701]: retrying with 4096 (current max)


Apparently the cyrus master process is trying to set the file descriptor
limit to -1?  Is it even legal to use -1 as infinity in this context?
According to the setrlimit man page:
------------------------------------
The soft limit is the value that the kernel enforces for the
corresponding resource. The hard limit acts as a ceiling for the soft
limit: an unprivileged process may only set its soft limit to a value in
the range from 0 up to the hard limit, and (irreversibly) lower its hard
limit. A privileged process (under Linux: one with the CAP_SYS_RESOURCE
capability) may make arbitrary changes to either limit value.

The value RLIM_INFINITY denotes no limit on a resource (both in the
structure returned by getrlimit() and in the structure passed to
setrlimit()).
------------------------------------

BTW, off topic and perhaps feeding some trolls, I'm really liking
systemd so far; in part because it's alerting me to minor
misconfiguration errors that I've had around for years but wasn't aware of.

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux