<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div><div><div><div><div>Hi all,<br></div>I am trying to run jackd instance from /etc/rc.local (along with a few other applications) from a custom made init script. <br><br>The
 system is ubuntustudio and I have setup everything to have elevated 
permissions when executing applications from the @audio group.<br><br></div>so when I am logged on, I see this:<span style="font-family:monospace,monospace"><br></span><div style="margin-left:40px"><span style="font-family:monospace,monospace">nass@starkill:~$ ulimit -r -l</span><br><span style="font-family:monospace,monospace">real-time priority              (-r) 95</span><br><span style="font-family:monospace,monospace">max locked memory       (kbytes, -l) unlimited</span><br></div><br></div>which is expected and I can execute the script I wrote.<br></div><div><br></div>but, when I execute my script from /etc/rc.local as <br><div style="margin-left:40px"><span style="font-family:monospace,monospace">su - nass -c "ulimits -r -l cd audio_setup/scripts ; bash ./start_audio" <br></span></div></div>then my user does not (yet?) have elevated permissions.<br></div><div><br><div style="margin-left:40px"><span style="font-family:monospace,monospace">real-time priority              (-r) 0<br>max locked memory       (kbytes, -l) 64<br></span></div><br></div><div>is there a script I can run before my start_audio script to elevate my permissions?<br><br></div>thank you                                      </div></body>
</html>