fwupd/contrib/snap/activate-shutdown/fwupd-activate.service
Mario Limonciello a3069f57b0 trivial: snap: set return code 2 on fwupd-activate.service as success
Otherwise the common case (nothing to do) will return 2 and show the systemd
unit as failed every time.
2019-04-04 22:30:25 +01:00

13 lines
229 B
Desktop File

[Unit]
Description=Activate fwupd updates
RequiresMountsFor=/snap/fwupd/current
[Service]
Type=oneshot
RemainAfterExit=true
ExecStop=/snap/bin/fwupd.fwupdtool activate
SuccessExitStatus=0 2
[Install]
WantedBy=multi-user.target