Re: Best way to set maximum number of open descriptors for a process

2017-02-08 Thread Daniel Bareiro
Hi, Sven. On 08/02/17 14:37, Sven Hartge wrote: >> In this case, it seems that the service file for systemd is created >> dynamically. Or I'm wrong? >> >> >> root@conference:~# find / -name jitsi-videobridge.service >> /sys/fs/c

Re: Best way to set maximum number of open descriptors for a process

2017-02-08 Thread Sven Hartge
Daniel Bareiro wrote: > On 08/02/17 10:20, Greg Wooledge wrote: >>> The process starts as a service, so it does not require a shell: >>> I had thought that I could add something to the script that starts the >>> process, but I'm not sure if it's the best idea from the point of view >>> of mainta

Re: Best way to set maximum number of open descriptors for a process

2017-02-08 Thread Daniel Bareiro
Hi, Greg. On 08/02/17 10:20, Greg Wooledge wrote: >> The process starts as a service, so it does not require a shell: >> I had thought that I could add something to the script that starts the >> process, but I'm not sure if it's the best idea from the point of view >> of maintainability because

Re: Best way to set maximum number of open descriptors for a process

2017-02-08 Thread Greg Wooledge
On Wed, Feb 08, 2017 at 09:26:14AM -0300, Daniel Bareiro wrote: > The process starts as a service, so it does not require a shell: > I had thought that I could add something to the script that starts the > process, but I'm not sure if it's the best idea from the point of view > of maintainability

Re: Best way to set maximum number of open descriptors for a process

2017-02-08 Thread Daniel Bareiro
Hi, Tomas. On 08/02/17 08:42, to...@tuxteam.de wrote: >> Maybe I could add something to the startup script, but maybe if the >> Debian package is updated, these changes will be lost. What do you >> suggest is the best way? > Yes, if the process is being started via a shell, ulimit seems the > wa

Re: Best way to set maximum number of open descriptors for a process

2017-02-08 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 08, 2017 at 08:28:33AM -0300, Daniel Bareiro wrote: > Hi! [...] > Maybe I could add something to the startup script, but maybe if the > Debian package is updated, these changes will be lost. What do you > suggest is the best way? Yes, if

Best way to set maximum number of open descriptors for a process

2017-02-08 Thread Daniel Bareiro
Hi! I would like to set the maximum number of open descriptors for a specific process in a way that is maintainable. I've tried putting something like this in /etc/security/limits.d/: jvbsoftnofile 10240 jvbhardnofile 10240 But this seems to only apply to processes with an a