Re: Setting open files for a process started by runit (using chpst)

From: Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups_at_NTLWorld.com>
Date: Sat, 21 May 2016 22:26:38 +0100

> it looks like chpst cannot currently (or never could, not sure) change
> hard limits.

The limit stanza in an upstart job file sets both hard and soft limits,
explicitly.

* http://upstart.ubuntu.com./cookbook/#limit
* http://smarden.org/runit/useinit.html#upstart

Bernstein's original softlimit did as the command name says, and changed
only soft limits. The same is true of the softlimit in
daemontools-encore, s6-softlimit, chpst in runit, runlimit in perp, and
the softlimit in nosh. To change hard limits instead or as well, I
wrote a chain-loading ulimit for nosh. If one is writing shell scripts,
then of course shells have built-in ulimit commands. The nosh toolset's
ulimit is for when one isn't writing shell scripts, e.g. nosh or
execlineb scripts, or command chains embedded within a script.

*
http://homepage.ntlworld.com./jonathan.deboynepollard/Softwares/nosh/guide/ulimit.html
Received on Sat May 21 2016 - 21:26:38 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC