disabled daemons are started after refresh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
High
|
Ian Johnson |
Bug Description
If a snap is installed with a daemon, then the daemon is stopped and disabled, snapd will always re-start and re-enable the daemon after the snap is refreshed.
See:
snapcraft.yaml:
```
name: test
version: "1.0.0"
summary: test snapd disabled daemons refresh
description: test snapd disabled daemons refresh
grade: stable
confinement: strict
apps:
test1:
command: bin
daemon: simple
parts:
part:
plugin: nil
override-
touch ${SNAPCRAFT_
echo "#!/bin/sh" >> ${SNAPCRAFT_
echo "sleep 1000" >> ${SNAPCRAFT_
chmod +x ${SNAPCRAFT_
```
Installing the snap:
$ snap install test_1.
test 1.0.0 installed
$ snap services test
Service Startup Current Notes
test.test1 enabled active -
$ snap stop --disable test.test1
Stopped.
$ snap services test
Service Startup Current Notes
test.test1 disabled inactive -
$ snap install test_1.
test 1.0.0 installed
$ snap services test
Service Startup Current Notes
test.test1 enabled active -
Changed in snapd: | |
assignee: | nobody → Ian Johnson (anonymouse67) |
Changed in snapd: | |
status: | New → Confirmed |
Changed in snapd: | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
Changed in snapd: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.43 |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
Note: I see this behavior with both the stable channel of the core snap (revision 6405 - snapd version 2.37.2) and also with the edge channel of the core snap.