[pulseaudio-tickets] [Bug 105799] Pulseaudio prevents /home from unmounting

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 30 15:24:22 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105799

--- Comment #5 from Manco <pulse at colakoglu.nl> ---
Thank you Felipe!

There is partial succes!

In multi-user.target (so without starting X), the system unmounts /home
cleanly. So after playing audio I can reboot/shutdown cleanly.

But when rebooting or shutting down from Gnome, I still get failed unmounting
/home. So Gnome must doing something. 

Mind you, I start Gnome from the console (I have set-default multi-user.target)
because I don't always need a GUI. In this case I don't use a display manager
like GDM, so GDM does not run on my system. 

I have the following in pulseaudio.service (as a user service):

[Unit]
Description=Sound Service
#RequiresMountsFor=/home
StopWhenUnneeded=true

# We require pulseaudio.socket to be active before starting the daemon, because
# while it is possible to use the service without the socket, it is not clear
# why it would be desirable.
#
# A user installing pulseaudio and doing `systemctl --user start pulseaudio`
# will not get the socket started, which might be confusing and problematic if
# the server is to be restarted later on, as the client autospawn feature
# might kick in. Also, a start of the socket unit will fail, adding to the
# confusion.
#
# After=pulseaudio.socket is not needed, as it is already implicit in the
# socket-service relationship, see systemd.socket(5).
Requires=pulseaudio.socket

[Service]
# Note that notify will only work if --daemonize=no
Type=notify
ExecStart=/usr/bin/pulseaudio --daemonize=no --exit-idle-time=0
Restart=on-failure

[Install]
Also=pulseaudio.socket
WantedBy=default.target

And the following in pulseaudio.socket:

[Unit]
Description=Sound System

[Socket]
Priority=6
Backlog=5
ListenStream=%t/pulse/native

[Install]
WantedBy=sockets.target

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20180330/04917f79/attachment.html>


More information about the pulseaudio-bugs mailing list