Re: [Jack-Devel] How to start JACK with systemd

PrevNext  Index
DateTue, 04 Dec 2012 12:51:28 +0100
From Fryderyk Dziarmagowski <[hidden] at gmail dot com>
ToStefan Stefanov <[hidden] at gmail dot com>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-ToStefan Stefanov [Jack-Devel] How to start JACK with systemd
On 12/04/2012 10:32 AM, Stefan Stefanov wrote:
> Hello
>
> I'm using jack2 under Archlinux.
> After systemd transition I cannot find a proper way to create
> jack.service in order to start jack as all other daemons in my system.
>
> Currently I tried with:
> [Unit]
> Description=JACK
> After=getty.target
>
> [Service]
> ExecStart=/usr/bin/jackd -R -d alsa -P hw:0,1 -r 96000 -p 64
>
> [Install]
> WantedBy=multi-user.target
>
> but it failed with:
> Failed to connect to session bus for device reservation Unable to
> autolaunch a dbus-daemon without a $DISPLAY for X11
>
> There is no problem to start jack manually after booting process by
> login into system and run jack from console.
>
> PS:
> 1) BTW, my system is dedicated to audio and it is headless.
> 2) I use automatic systemd service to auto-login after boot process.

The right thing here would be to use user session (systemd --user) and 
not system-wide service.

Freddy
PrevNext  Index

1354621900.5590_0.ltw:2, <50BDE3C0.1030901 at gmail dot com>