Enable snaps to run before SSH comes up in classic boot process

Bug #1609762 reported by Dan Watkins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Medium
Unassigned

Bug Description

A common pattern for daemons that are provided by cloud vendors (e.g. GCE, Windows Azure) is that they need to block some part of the boot to do configuration.

Most often, they need to run after networking is up but before SSH is up, to communicate with their metadata services to provision SSH configuration, so it would be good to solve that particular use case.

Tags: cpc
Revision history for this message
Dan Watkins (oddbloke) wrote :

I could see this being solved in a couple of ways: either provide a specific way of specifying that we want to run before SSH is up, or provide a generic way of interleaving services in to the regular systemd boot process using unit names.

summary: - Enable snaps to run before SSH comes up in boot process
+ Enable snaps to run before SSH comes up in classic boot process
Revision history for this message
Jamie Bennett (jamiebennett) wrote :

Is this something that is a one-shot i.e. just on first boot?

Also, as this is in a classic environment and not Ubuntu Core maybe slangasek can comment on how this could be done?

Revision history for this message
Steve Langasek (vorlon) wrote :

This would need to be implemented in snapd, since all of the systemd units for snaps are autogenerated. It's not really a classic vs. core issue.

Dan Watkins (oddbloke)
tags: added: cpc
Revision history for this message
John Lenton (chipaca) wrote :

Ordering snapped services wrt system services is something we want to do, but don't have a plan for just yet.

Changed in snappy:
status: New → Confirmed
importance: Undecided → Medium
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.