Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
topas-rec opened this issue Mar 18, 2024 · 2 comments
Open
Labels

Comments

@topas-rec
Copy link

topas-rec commented Mar 18, 2024

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 topas-rec added the bug label Mar 18, 2024
@falkTX
Copy link
Member

falkTX commented Mar 18, 2024

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 ac334fa but seems then unrelated then

@udaemon
Copy link

udaemon commented Mar 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants