On Tue, Jun 16, 2015 at 02:22:09PM +0000, nusenu wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Hi,
> 
> I'm running multiple instances of a daemon (tor).
> 
> I'd like to adjust the openfiles-max limit for all of these tor instance
> s.
> 
> 1) I changed the "_tor" user's login class to "tordaemon"
> 
> # userinfo _tor
> login   _tor
> passwd  *************
> uid     566
> groups  _tor
> change  NEVER
> class   tordaemon     <<<<<
> 
> 
> 2) added the following line to login.conf:
> 
> tordaemon::openfiles-max=13500::tc=daemon:
> 
> That does not do what I was aiming for.
> 
> Having a login.conf line per tor instance matching the rc.d script
> name works, but is there also a way to achieve that with a single line
> as well?

Well... yes and no.
The rc.d(8) system will use exact daemon script name and will apply the 
matching login class if it exists -- if not, "daemon" will be used.
*But* that is only true in the sense that you cannot "override" the login class 
using rc.conf.local. If you already use homemade rc.d scripts, you can set the 
daemon class by adding:
daemon_class="tordaemon"
in the rc.d scripts.

-- 
Antoine

Reply via email to