Really, the right thing to do here is to set JACK up as a system
service, with an init script, or whatever the systemd equivalent is, if
you're running systemd.
What you're using now is not actually an init script, if you have to
call it from rc.local. Init scripts go in /etc/init.d, follow specific
conventions, and are symlinked into various targets so they run only in
the appropriate run levels.
Here's a decent primer: http://www.thegeekstuff.com/2012/03/lsbinit-script/
David Nielson
On 04/18/2015 05:34 AM, Athanasios Silis wrote:
> Hi Len,
> unfortunately the .desktop file is not good for me.
> it is only run after I have logged in, whereas I want my script to be
> started as me, but before I log in.
> Is there a way to achieve that, without resorting to autologin ?
>
> On Fri, Apr 17, 2015 at 4:10 PM, Len Ovens <len@ovenwerks.net
> www.ovenwerks.net <http://www.ovenwerks.net>> <mailto:len@ovenwerks.net>> wrote:
>
> On Fri, 17 Apr 2015, Athanasios Silis wrote:
>
> Hi all,
> I am trying to run jackd instance from /etc/rc.local (along with
> a few other
> applications) from a custom made init script.
>
> The system is ubuntustudio and I have setup everything to have
> elevated
> permissions when executing applications from the @audio group.
>
>
> Are you really wanting to run audio while you are logged out? It
> would be much easier to add a desktop file to ~/.config/autostart/
> Like jackstart.desktop with something like:
>
> [Desktop Entry]
> Encoding=UTF-8
> Version=0.9.4
> Type=Application
> Name=AutoJack
> Comment=Jackdbus starter
> Exec=jack_control start
> StartupNotify=false
> Terminal=false
> Hidden=false
>
>
> Change the Exec to point to a script if you want to add config
> options, or use jackd instead of jack_control if you don't care
> about PA-jack bridging.
>
> This will have jack runnning from login.
>
> If you want to headless operation then have rc.local do it as the
> user that will run this stuff.
>
> --
> Len Ovens
>
>
>
>
> _______________________________________________
> Jack-Devel mailing list
> Jack-Devel@lists.jackaudio.org
> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
>
_______________________________________________
Jack-Devel mailing list
Jack-Devel@lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org