Snapcraft is not allowing to create a service with restart always option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Snapcraft-2.3 version does not allow restart-condition to be set in snapcraft.yaml. This is resulting in all daemons defaulting to restart on-fault. It would be good to provide choice to developer creating the app.
Below change to schema allows setting of systemd unit behavior.
diff --git a/schema/
index 000315a..9b29f3b 100644
--- a/schema/
+++ b/schema/
@@ -162,6 +162,9 @@ properties:
+ restart-condition:
+ type: string
+ description: service restart condition
daemon:
type: string
affects: | snappy → snapcraft |