<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/09/2017 02:26 PM, alex wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e25b9393-85e4-d185-296d-707648528fc6@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p><br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 07/09/2017 02:10 PM, Ralf Mardorf
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:20170709131000.33910f66@archlinux.localdomain">
        <pre wrap="">On Sun, 9 Jul 2017 13:55:26 +0300, alex wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Distributor ID:    Ubuntu
Release:    14.04
Codename:    trusty
</pre>
        </blockquote>
        <pre wrap="">This is a very good information :).

See <a class="moz-txt-link-freetext" href="https://wiki.ubuntu.com/SystemdForUpstartUsers" moz-do-not-send="true">https://wiki.ubuntu.com/SystemdForUpstartUsers</a> .

You are _not_ using systemd, or a hybrid. You are using upstart, IOW
init scripts.

So _unfortunately_ you could ignore Hermann's suggestion to use a
systemd unit.</pre>
      </blockquote>
      So, I should replace (not that I've tried already) Hermann's
      suggestion with the following:<br>
      <pre style="background-color:#F1F1ED">description "Job that runs the foo daemon"

# start in normal runlevels when disks are mounted and networking is available
start on runlevel [2345]

# stop on shutdown/halt, single-user mode and reboot
stop on runlevel [016]

env statedir=/var/cache/foo

# create a directory needed by the daemon
pre-start exec mkdir -p "$statedir"

exec /usr/bin/foo-daemon --arg1 "hello world" --statedir "$statedir"</pre>
      Taken from the link you provided, right? This example is for a
      /etc/init/foo.conf file. Should I create a /etc/init/jackd.conf
      file? If so, I guess I should change some stuff, like the last two
      lines. But what should I put there instead?<br>
      <blockquote type="cite"
        cite="mid:20170709131000.33910f66@archlinux.localdomain">
        <pre wrap="">
Again, troubleshooting should be done by redirecting messages to a log
file + taking into account what Neil mentions, assuming you should try
with ALSA instead of jackd.</pre>
      </blockquote>
      -rt is the default behavior in Pd, if I'm not mistaken.
      Never-the-less I tried to launch it with this flag and ALSA but I
      still get dropouts.<br>
      <blockquote type="cite"
        cite="mid:20170709131000.33910f66@archlinux.localdomain">
        <pre wrap="">
However, I don't understand why you do not get a log file :(.
</pre>
      </blockquote>
      I'll try again. I tried to add 'jack_wait -w' to my script, and
      again running manually works fine, but on boot jack_wait waits for
      ever and jack never starts.<br>
    </blockquote>
    jack_wait -w actually helped with creating a log file. Here's the
    output:<br>
    <br>
    jackdmp 1.9.10<br>
    Copyright 2001-2005 Paul Davis and others.<br>
    Copyright 2004-2013 Grame.<br>
    jackdmp comes with ABSOLUTELY NO WARRANTY<br>
    This is free software, and you are welcome to redistribute it<br>
    under certain conditions; see the file COPYING for details<br>
    JACK server starting in realtime mode with priority 10<br>
    Failed to connect to session bus for device reservation Unable to
    autolaunch a dbus-daemon without a $DISPLAY$<br>
    <br>
    Audio device hw:1 cannot be acquired...<br>
    Cannot initialize driver<br>
    JackServer::Open failed with -1<br>
    Failed to open server<br>
    <br>
    <br>
    Even if I change hw:1 to hw:USB I get the same with:<br>
    Audio device hw:USB cannot be acquired...<br>
    <br>
    Is there a chance that jack starts before the system sees the USB
    sound card? Should I put a 'sleep 10' before launching jack in the
    script?<br>
    <br>
  </body>
</html>