Hacker News new | ask | show | jobs
by esbeeb 919 days ago
Can you give example code to stop that timer?
2 comments

It's the same, but you disable the timer instead of the service. `sudo systemctl stop unattended-upgrades.timer`
It will still start when you next boot up. 'systemctl disable --now unattended-upgrades.timer' will stop it now _and_ remove the symlink that starts it at boot.
Probably better to mask it instead if you don't want it to execute at all
Usually, it's the same service name but with .timer at the end instead of .service.