Bug#764678: dh-systemd: Please support systemd user services

Daniel Kahn Gillmor dkg at debian.org
Tue Jun 28 23:11:14 BST 2016


On Fri 2014-10-10 03:30:07 -0400, Michael Vogt <mvo at debian.org> wrote:
> It would be very nice if dh-systemd would support systemd user
> units (both for detecting them during build time and to add
> something like "systemctl --global enable my-user-unit" to the
> debian/postinst).
>
> My use case is that the package installs a unit that
> should run at login time for all users. In the past this was 
> done via the upstart session support. 

fwiw, i'd like to see this capability for dh-systemd as well.

One alternative available now is to have the package manually ship a
symlink in /etc/systemd/user/default.target.wants/$PKGNAME.service
(pointing to /usr/lib/systemd/user/$PKGNAME.service, assuming the user
service wants to be installed in default.target), but shipping this
symlink as a config file seems a little bit strange, and wouldn't be
safely undoable by "systemctl --global disable my-user-unit" (it'd just
get re-added on upgrade, i think).

It'd be nice to have something more generalized, which can be safely and
cleanly overridden by both the admin and by individual users.

        --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 948 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160628/38a9897d/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list