<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 09/10/17 19:15, Athanasios Silis
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADgchntawLWRA9mgV4Pto-8qt0_OBBSmmZRQc1_rpvJhd85_3A@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi there,<br>
                </div>
                I have setup an audio system around jackd based on
                ubuntu studio (14.04 LTS). I have written various
                scripts to setup jackd and clients. It is tested and up
                running. Now I would like to add a cmd in rc.local in
                order for the whole system to be brought up at boot.<br>
                <br>
              </div>
              I tried<br>
              <br>
            </div>
            <div>#set limits<br>
            </div>
            <div>su - nass -c "ulimit -r 95 -l unlimited" 2>&1 |
              tee -a  /tmp/audio.log<br>
              <br>
            </div>
            <div>#verify limits<br>
            </div>
            <div>su - nass -c "ulimit -r -l" 2>&1 | tee -a 
              /tmp/audio.log<br>
              <br>
            </div>
            <div>#boot audio stuff<br>
            </div>
            <div>su - nass -c "cd /home/nass/audio_setup/scripts ; bash
              ./cmdaudio start" 2>&1 | tee -a  /tmp/audio.log<br>
              <br>
            </div>
            However the ulimit "set" command fails with message<br>
            ulimit: real-time priority: cannot modify limit: Operation
            not permitted<br>
            <br>
          </div>
          I read that ulimits are not ready yet at this time. Is there a
          way to forcefully "bring them up" in order to have them set
          for the user "nass" before starting the audio scripts ??<br>
          <br>
        </div>
        Thank you<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Linux-audio-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.linuxaudio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.linuxaudio.org/listinfo/linux-audio-user">https://lists.linuxaudio.org/listinfo/linux-audio-user</a>
</pre>
    </blockquote>
    <tt>ulimit is built-in to the command shell program. I'd suggest you
      encase your commands in a shell script<br>
      with the ulimit at the start, and invoke that, via su, from
      rc.local.<br>
      <br>
      However, I suspect that will still reject the request. I'd suggest
      you look at starting the programs,<br>
      then use the renice command (see man renice) to alter the priority
      once they are running.<br>
      You need to be root to raise the priority of a process above
      normal.<br>
      <br>
      Bill</tt><br>
    <pre class="moz-signature" cols="72">-- 
+----------------------------------------+
| Bill Purvis                            |
| email: <a class="moz-txt-link-abbreviated" href="mailto:bill@billp.org">bill@billp.org</a>                  |
+----------------------------------------+
</pre>
  </body>
</html>