Title says it all. If I manually close jack with the command jack_control exit my pc shuts down normally. I don’t want to manually type this every time. So I created that command as a script and if I execute it manually it works fine. However when I tell Manjaro to execute the script on logout (through the autostart option in system preferences) it does not work. I also tried to follow another guide to execute a script on shutdown (which I’m unable to link) with no luck. JackDBus still runs even if I stop jack manually with QJackctl.
File: /etc/systemd/system/jack-exit.service
[Unit]
Description=Run jack_control exit on shutdown
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target
[Service]
Type=oneshot
ExecStart=/usr/bin/jack_control exit
RemainAfterExit=true
[Install]
WantedBy=shutdown.target reboot.target halt.target
The run:
sudo systemctl daemon-reload
sudo systemctl enable jack-exit.service
Now it will run before shutdown, reboot or halt. Easy?
That didn’t work for me unfortunately. I still get “A stop job is running”. Would I be able to execute on log out? That might fix the issue but I do not know how to do that
Then add this “job” to the Before= list.
The “job” that’s causing it is JackDBus. I can confirm this because when I close Jack manually all is fine.
Ah alright… it is not a systemd service, but a dbus service. Huge difference.
Try switching back to dbus-daemon-units if dbus-broker-units is installed.
How would I do that?
Install it?
Issue appears to be similar to this report from Arch users
Sorry I had it installed already, how do I switch to it?
These 2 packages are in conflict. You cannot have both packages installed at the same time. You switch by removing one and installing the other. Say: “Switch.”