"Restart" condition should be respected for oneshot daemons if systemd allows

Bug #1915337 reported by Svet Bajlekov on 2021-02-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Currently, for a daemon of type "oneshot", the Restart condition of the installed systemd unit is always set to "no", regardless of what is specified in the snapcraft.yaml under "restart-condition" (see https://forum.snapcraft.io/t/restart-condition-not-respected-for-oneshot-systemd-service/ for some further discussion)

This seems appropriate for older versions of systemd that did not support anything except Restart=no for oneshot daemons, but newer versions do support the full set of restart conditions (https://github.com/systemd/systemd/pull/13754). Such conditions should therefore be reflected in the systemd units that snapd creates upon snap installation.

Changed in snapd:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers