<div dir="ltr"><div><div><div>Hi David,<br></div> it appears that due to the nature of ubuntu* distros, I have given up the notion of starting my audio application from within rc.local - I had problems with alsa_(in|out) not being able to grab the soundcards in my system.<br><br></div>it was suggested that I do it from my desktop environments autostart features, but these are executed when I log in, whereas I want audio to start up sometime during the boot process (as my user) but before I log in. basically the idea is<br></div><div>-I press "power ON" button on the pc<br></div><div>-wait for pc to boot<br></div><div>-audio works through this pc<br></div><div><br>It is an audio routing workstation (and jack client) so it should normally get audio from the jack master, do some processing and spit audio from the soundcard i/o.<br></div><div><br></div><div>so starting everything as root with a proper init script is not in the direction. but it appears "application autostart" is not effective either.<br><br></div><div><br> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 18, 2015 at 1:58 PM, David Nielson <span dir="ltr"><<a href="mailto:david@naptastic.com" target="_blank">david@naptastic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Really, the right thing to do here is to set JACK up as a system<br>
service, with an init script, or whatever the systemd equivalent is, if<br>
you're running systemd.<br>
<br>
What you're using now is not actually an init script, if you have to<br>
call it from rc.local. Init scripts go in /etc/init.d, follow specific<br>
conventions, and are symlinked into various targets so they run only in<br>
the appropriate run levels.<br>
<br>
Here's a decent primer: <a href="http://www.thegeekstuff.com/2012/03/lsbinit-script/" target="_blank">http://www.thegeekstuff.com/2012/03/lsbinit-script/</a><br>
<br>
David Nielson<br>
<span class=""><br>
On 04/18/2015 05:34 AM, Athanasios Silis wrote:<br>
> Hi Len,<br>
> unfortunately the .desktop file is not good for me.<br>
> it is only run after I have logged in, whereas I want my script to be<br>
> started as me, but before I log in.<br>
> Is there a way to achieve that, without resorting to autologin ?<br>
><br>
> On Fri, Apr 17, 2015 at 4:10 PM, Len Ovens <<a href="mailto:len@ovenwerks.net">len@ovenwerks.net</a><br>
</span><div><div class="h5">> <mailto:<a href="mailto:len@ovenwerks.net">len@ovenwerks.net</a>>> wrote:<br>
><br>
>     On Fri, 17 Apr 2015, Athanasios Silis wrote:<br>
><br>
>         Hi all,<br>
>         I am trying to run jackd instance from /etc/rc.local (along with<br>
>         a few other<br>
>         applications) from a custom made init script.<br>
><br>
>         The system is ubuntustudio and I have setup everything to have<br>
>         elevated<br>
>         permissions when executing applications from the @audio group.<br>
><br>
><br>
>     Are you really wanting to run audio while you are logged out? It<br>
>     would be much easier to add a desktop file to ~/.config/autostart/<br>
>     Like jackstart.desktop with something like:<br>
><br>
>     [Desktop Entry]<br>
>     Encoding=UTF-8<br>
>     Version=0.9.4<br>
>     Type=Application<br>
>     Name=AutoJack<br>
>     Comment=Jackdbus starter<br>
>     Exec=jack_control start<br>
>     StartupNotify=false<br>
>     Terminal=false<br>
>     Hidden=false<br>
><br>
><br>
>     Change the Exec to point to a script if you want to add config<br>
>     options, or use jackd instead of jack_control if you don't care<br>
>     about PA-jack bridging.<br>
><br>
>     This will have jack runnning from login.<br>
><br>
>     If you want to headless operation then have rc.local do it as the<br>
>     user that will run this stuff.<br>
><br>
>     --<br>
>     Len Ovens<br>
</div></div>>     <a href="http://www.ovenwerks.net" target="_blank">www.ovenwerks.net</a> <<a href="http://www.ovenwerks.net" target="_blank">http://www.ovenwerks.net</a>><br>
<div class="HOEnZb"><div class="h5">><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Jack-Devel mailing list<br>
> <a href="mailto:Jack-Devel@lists.jackaudio.org">Jack-Devel@lists.jackaudio.org</a><br>
> <a href="http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org" target="_blank">http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org</a><br>
><br>
_______________________________________________<br>
Jack-Devel mailing list<br>
<a href="mailto:Jack-Devel@lists.jackaudio.org">Jack-Devel@lists.jackaudio.org</a><br>
<a href="http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org" target="_blank">http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org</a><br>
</div></div></blockquote></div><br></div>