# Jackd options not always right

**URL:** <https://discourse.zynthian.org/t/jackd-options-not-always-right/2341>\
**Category:** Software\
**Created:** [October 15, 2018, 9:07pm UTC](https://discourse.zynthian.org/t/jackd-options-not-always-right/2341 "2018-10-15T21:07:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudev](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/claudev/32/1076_2.png) [@claudev](https://discourse.zynthian.org/u/claudev)\
**Post date:** [October 15, 2018, 9:07pm UTC](https://discourse.zynthian.org/t/jackd-options-not-always-right/2341/1 "2018-10-15T21:07:28Z")

</div>

Hello,

I noticed that the jackd process is sometimes starting with the wrong options:

> root@zynthian:~# ps aux | grep jackd  
> root (…) 0:00 /usr/bin/jackd -T -ndefault -T -d alsa

Instead, we should have the options set in the jack2.service systemd config (/usr/bin/jackd -P 70 -t 2000 -s -d alsa -d hw:0 -r 44100 -p 256 -n 2 -X raw)  
The sample rate corresponding to default is 48000khz.  
It’s not happening all the times but I saw it quite often.

I found out that this happens when the jack2 service fails to start. To solve the issue, I added a “Restart=on-failure” option for the service.  
This is a quick and dirty fix but since then, jackd gets initialised with the correct options.

I use the last version of the Zynthian software but this problem is not very new.  
Maybe this behavior happens only to me as I cannot stop myself from tweaking linux platforms 🙂 . Can you guys please check on yours ?

Cheers,  
Claude

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 16, 2018, 10:48am UTC](https://discourse.zynthian.org/t/jackd-options-not-always-right/2341/2 "2018-10-16T10:48:07Z")

</div>

Nice! I will test your trick and if it works OK, modify the service file on the repo 😉

Thanks!

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 29, 2018, 1:09pm UTC](https://discourse.zynthian.org/t/jackd-options-not-always-right/2341/3 "2018-10-29T13:09:11Z")

</div>

OK! The “Restart” option has been added to the jackd systemd service unit.

> <https://github.com/zynthian/zynthian-sys/commit/75eb232e9e8d639292d4131a0df7f61e9115080c>

Thanks!
