[debhelper-devel] Bug#764678: dh-systemd: Please support systemd user services

Daniel Kahn Gillmor dkg at debian.org
Wed Aug 10 05:50:58 UTC 2016


Control: affects 764678 + dirmngr gnupg-agent pulseaudio

On Fri 2016-08-05 12:38:58 -0400, Daniel Kahn Gillmor wrote:
> On Tue 2016-06-28 19:39:26 -0400, Michael Biebl wrote:
>> Daniel, which service do you have in mind which already requires a
>> systemd user session and systemd user services?
>
> i'm looking at this for the gnupg-agent and dirmngr packages
> (gpg-agent.service and dirmngr.service), which are currently generated
> From the gnupg2 source package in experimental.

fwiw, i think that the pulseaudio user service would also be a good idea
to enable automatically.

Currently, on a testing system with a stock gnome-core 1:3.20+1
installed, without the pulseaudio user service being enabled, a user
session will persist up to 20 seconds after logout is complete, waiting
on "/usr/bin/pulseaudio --start --log-target=syslog" to terminate.

the 20 seconds comes from pulse's "--exit-idle-time" default:

 https://sources.debian.net/src/pulseaudio/8.0-2/src/daemon/daemon-conf.c/?hl=72#L61

if the user does:

 systemctl --user enable pulseaudio

and then logs out, waits at least 20 seconds, and logs back in again,
then her new pulse server will be managed by the systemd user services
(user at NNNN.service in the cgroup hierarchy shown by "systemctl status")
instead of in the specific login session (session-N.scope).

Subsequent logouts no longer wait for pulseaudio to terminate.

On machines running systemd, a user service seems like a cleaner way to
supervise pulseaudio.

           --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 930 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20160810/5cd065be/attachment-0001.sig>


More information about the debhelper-devel mailing list