There is a need to add information about the order of start of services defined in a snap. The ordering information should map to
Before=... entries in autogenerated systemd
The proposed syntax change in snap YAML is like this:
We will validate if the services listed in
start-after/start-before actually exist. Also, we’ll do some very simple dependency checks eg.
start-after: [bar] and
start-after: [foo] will cause an error. I do not think we should go as far as to verify the whole chain of transitive dependencies.
Given the example above, the generated
*.service files will look like this:
Description=Service for snap application wat.foo
After=.... wat.bar.service wat.zed.service