jack2 icon indicating copy to clipboard operation
jack2 copied to clipboard

jack-dbus delays shutdown when dbus-broker-units (systemd) are in use

Open topas-rec opened this issue 1 year ago • 3 comments

Describe the bug

I didn't fully understand the problem, but volunteered to add this bug report after discussing it here.

When dbus-broker-unitsare installed as opposed to dbus-daemon-units, then jackdbus prevents the machine from shutting down (without extra waiting time). It hangs until it gets killed by systemd.

It seems the reason for this is that

so jackdbus simply doesn't respond to a SIGTERM

from comment 21.

jackdbus is started using a generated systemd service, see comment 27. When properly defining a service like in comment 27:

[Unit]
Description=You don't know jack
Documentation=Jackyourself

[Service]
Type=dbus
BusName=org.jackaudio.service
ExecStart=/usr/bin/jackdbus auto
KillSignal=SIGKILL

jackdbus does not hang on shutdown / reboot.

I have no suggestion how to fix this but I would be pleased if you could. Thanks

Environment

  • JACK Version: jackdmp version 1.9.22 tmpdir /dev/shm protocol 9
  • Operating System: arch Linux
  • Installation: pacman package

Steps To Reproduce

  1. Install arch
  2. Use dbus-broker-units
  3. Install jack2
  4. Reboot

Expected vs. actual behavior

When using dbus-broker-units, jackdbus should respond to SIGTERM properly and "quit" so that the system can shut down.

topas-rec avatar Mar 18 '24 20:03 topas-rec

I am not sure if that is indeed the underlying culprit (not responding to sigterm) or it simply getting stuck while shutting down. I made an attempt to fix the 2nd issue in ac334fabfb56989e9115ee6e2a77c1f6162d14fb but seems then unrelated then

falkTX avatar Mar 18 '24 20:03 falkTX

Just want to report the same behavior here, also on Arch Linux, with jack2 and d-bus support (1.9.22-1).

udaemon avatar Mar 28 '24 15:03 udaemon