[Icecast] Maximum Listeners.
Paul Martin
pm at nowster.me.uk
Sun Mar 24 20:26:41 UTC 2019
On Sun, Mar 24, 2019 at 06:02:47PM +0000, Pedro M. Oliveira wrote:
> If I set this:
> [root at scast1 ~]# prlimit -n5000 -p <pid>
>
> Everything works perfectly. But if I stop or reboot my ice cast
> server, 1024 backs again.
>
> What can I do to save that open file setting?
What is starting icecast?
If it's controlled by systemd, you probably want to add
"LimitNOFILE=50000" to icecast's .service file.
If it's the .deb produced by Xiph (which doesn't have a .service
file), you'll probably want to edit /etc/init.d/icecast2 (or
/etc/default/icecast2) and add
prlimit --pid $$ --nofile=50000
to it.
--
Paul Martin <pm at nowster.me.uk>
More information about the Icecast
mailing list