Enable ordering of services provided by a snap

Bug #1609757 reported by Dan Watkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned

Bug Description

An upstream for a piece of software I'm looking at snapping provide two systemd unit files. One of them is a oneshot which does some configuration of the booted system, and the other is a simple daemon which relies on some of the configuration performed by the oneshot.

snapcraft/snapd currently have the primitives for me to express each of these services individually, but I don't have any way of expressing the order in which these services should be executed. I would like to be able to do something like::

    apps:
      system-config:
        command: ...
        daemon: oneshot

      long-running-process:
        command: ...
        daemon: simple
        run-after: system-config

and have snapd do the right thing.

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

in-snap services can be ordered by specifying before/after as specified in https://forum.snapcraft.io/t/the-snap-format/698

Changed in snappy:
status: New → Fix Released
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.