<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Pulseaudio prevents /home from unmounting"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105799#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Pulseaudio prevents /home from unmounting"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105799">bug 105799</a>
from <span class="vcard"><a class="email" href="mailto:pulse@colakoglu.nl" title="Manco <pulse@colakoglu.nl>"> <span class="fn">Manco</span></a>
</span></b>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>