No way to run daemons on user session

Bug #1613420 reported by Renato Araujo Oliveira Filho on 2016-08-15
52
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Canonical System Image
High
Thomas Voß
Snappy
High
Unassigned

Bug Description

Some daemons need to run on user session. and the current implementation run it on system session.

For example EDS it needs to connect to user dbus session.

Bill Filler (bfiller) on 2016-08-15
tags: added: system-apps

It is important to note that "user session" is not really universal. It
needs to be Upstart for Unity7/8 today, in the future it'll be systemd,
gnome-session for GNOME, etc. This means we really need an abstract way
for the individual sessions to implement what "user session"
is.##SELECTION_END##

Jim Hodapp (jhodapp) wrote :

This is also needed for media-hub-server since it has the same requirement as EDS does to connect to the user dbus session.

summary: - no way to run daemons on user session
+ No way to run daemons on user session
Mark Shuttleworth (sabdfl) wrote :

Right, the idea is that the snap.yaml has an abstract declaration of
what it wants, the assertion from Canonical says what it can get and
whether that is automatic, and then the snapd implementation for the
particular environment maps those to the specifics of init system or
security system.

Mark

Jamie Bennett (jamiebennett) wrote :

This was discussed yesterday and it seems it is a non-trivial amount of work to accomplish. Positive steps we can take in the short-term are to design the solution first over the next couple of weeks and try to schedule this work for later.

Leo Arias (elopio) wrote :

This might be a duplicate of bug #1617314.

Leo Arias (elopio) wrote :

Something like this was requested by syncthing:

"As for the daemon thing... We ship systemd files in the Debian package, for example. A user can start Syncthing for themselves by systemctl enable syncthing@jb or something like that. It'll then nicely autostart itself and just generally work, which is something that we otherwise get lots of questions about how to accomplish. :)

It appears that when I add the daemon: simple thing to the meta file, I get something like snap.syncthing.syncthingd.service which is a system level service running as root only, which does not help at all. Hence the question about how to integrate, if it's possible."

This should definitely be possible, +1

Leo Arias (elopio) on 2016-12-01
Changed in snappy:
status: New → Confirmed
Jamie Strandboge (jdstrand) wrote :

FYI, people may want to follow along in this thread: https://lists.ubuntu.com/archives/snapcraft/2016-December/001993.html. AIUI, the designs are in place and the implementation should start soon by the team working on Ubuntu Personal.

Changed in snappy:
status: Confirmed → Triaged
importance: Undecided → High
Pat McGowan (pat-mcgowan) wrote :

@thomas will you be working on this or do we need to find someone

tags: added: personal
Changed in canonical-devices-system-image:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Thomas Voß (thomas-voss)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers