Disabled snap timer service is re-enabled upon refresh or reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
New
|
Undecided
|
Unassigned |
Bug Description
To my understanding, if the user disables a snap's timer service, it should persist through snap refreshes and reboots. This was discussed at https:/
It seems that both rebooting and refreshing the snap causes the timer to be re-enabled. Reproductions follow.
Case 1: Disabling the timer and rebooting, re-enables the timer:
---
# snap install --classic certbot
# systemctl status snap.certbot.
● snap.certbot.
Loaded: loaded (/etc/systemd/
Active: active (waiting) since Thu 2023-01-12 07:36:25 AEDT; 49s ago
Trigger: Thu 2023-01-12 21:55:00 AEDT; 14h left
Triggers: ● snap.certbot.
# snap stop --disable certbot
Stopped.
# snap services certbot
Service Startup Current Notes
certbot.renew enabled inactive timer-activated
# systemctl status snap.certbot.
○ snap.certbot.
Loaded: loaded (/etc/systemd/
Active: inactive (dead) since Thu 2023-01-12 07:39:03 AEDT; 2min 4s ago
Trigger: n/a
Triggers: ● snap.certbot.
# reboot
# snap services certbot
Service Startup Current Notes
certbot.renew enabled inactive timer-activated
# systemctl list-timers --all | grep -i certbot
Thu 2023-01-12 08:38:00 AEDT 54min left n/a n/a snap.certbot.
Case 2: Disabling the timer and refreshing it, re-enables the timer:
---
# snap install --classic certbot
# systemctl list-timers --all | grep -i certbot
Thu 2023-01-12 08:38:00 AEDT 51min left n/a n/a snap.certbot.
# snap stop --disable certbot
Stopped.
# systemctl list-timers --all | grep -i certbot
n/a n/a n/a n/a snap.certbot.
# snap refresh --beta certbot
certbot (beta) 2.1.1 from Certbot Project (certbot-eff✓) refreshed
# systemctl list-timers --all | grep -i certbot
Thu 2023-01-12 19:37:00 AEDT 11h left n/a n/a snap.certbot.
# snap services certbot
Service Startup Current Notes
certbot.renew enabled inactive timer-activated
Versions
---
# cat /etc/os-release
PRETTY_
NAME="Ubuntu"
VERSION_
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_
ID=ubuntu
ID_LIKE=debian
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
UBUNTU_
# snap version
snap 2.58
snapd 2.58
series 16
ubuntu 22.04
kernel 5.15.0-1026-oracle
description: | updated |