No way to run daemons on user session

Bug #1613420 reported by Renato Araujo Oliveira Filho
54
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
High
Thomas Voß
snapd
Triaged
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)
tags: added: system-apps
Revision history for this message
Ted Gould (ted) wrote : Re: [Bug 1613420] [NEW] no way to run daemons on user session

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##

Revision history for this message
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
Revision history for this message
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

Revision history for this message
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.

Revision history for this message
Leo Arias (elopio) wrote :

This might be a duplicate of bug #1617314.

Revision history for this message
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."

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1613420] Re: No way to run daemons on user session

This should definitely be possible, +1

Leo Arias (elopio)
Changed in snappy:
status: New → Confirmed
Revision history for this message
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
Revision history for this message
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)
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.