<div dir="ltr"><div><div><div>Hi Jeremy, <br></div>the file you refer to already exists and "nass" user is already part of the @audio group.<br></div>Are you implying that limits could be raised even without uncommenting the  line in /etc/pam.d/su:<br>
# session    required   pam_limits.so<br><br>??<br><br></div><div>BTW this is indeed what make it all work. Thank you :)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 10, 2017 at 10:16 AM, Jeremy Jongepier <span dir="ltr"><<a href="mailto:jeremy@autostatic.com" target="_blank">jeremy@autostatic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Athanasios,<br>
<span class=""><br>
On 10/09/2017 08:15 PM, Athanasios Silis wrote:<br>
> Hi there,<br>
> I have setup an audio system around jackd based on ubuntu studio (14.04<br>
> LTS). I have written various scripts to setup jackd and clients. It is<br>
> tested and up running. Now I would like to add a cmd in rc.local in order<br>
> for the whole system to be brought up at boot.<br>
><br>
> I tried<br>
><br>
> #set limits<br>
> su - nass -c "ulimit -r 95 -l unlimited" 2>&1 | tee -a  /tmp/audio.log<br>
><br>
> #verify limits<br>
> su - nass -c "ulimit -r -l" 2>&1 | tee -a  /tmp/audio.log<br>
><br>
> #boot audio stuff<br>
> su - nass -c "cd /home/nass/audio_setup/scripts ; bash ./cmdaudio start"<br>
> 2>&1 | tee -a  /tmp/audio.log<br>
><br>
> However the ulimit "set" command fails with message<br>
> ulimit: real-time priority: cannot modify limit: Operation not permitted<br>
><br>
> I read that ulimits are not ready yet at this time. Is there a way to<br>
> forcefully "bring them up" in order to have them set for the user "nass"<br>
> before starting the audio scripts ??<br>
><br>
<br>
</span>Try uncommenting the following line in /etc/pam.d/su:<br>
# session    required   pam_limits.so<br>
<br>
Reboot and your script should work. I would advise you though to not set<br>
limits this way but to add the nass user to the audio group and check if<br>
/etc/security/limits.d/audio.<wbr>conf exists. If it doesn't then run sudo<br>
dpkg-reconfigure jackd2 and answer yes to the question if you want to<br>
use JACK with realtime settings.<br>
<br>
Best,<br>
<br>
Jeremy<br>
<br>
<br>______________________________<wbr>_________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.<wbr>linuxaudio.org</a><br>
<a href="https://lists.linuxaudio.org/listinfo/linux-audio-user" rel="noreferrer" target="_blank">https://lists.linuxaudio.org/<wbr>listinfo/linux-audio-user</a><br>
<br></blockquote></div><br></div>