summaryrefslogtreecommitdiff
path: root/debian/apt-daily.service
diff options
context:
space:
mode:
authorNicolas Le Cam <niko.lecam@gmail.com>2016-06-22 21:39:38 +0200
committerJulian Andres Klode <jak@debian.org>2016-06-27 11:22:02 +0200
commit51d659e7d8cdce59f910eceeee68e2c2afdb70d4 (patch)
tree831f8e8f6e5efd069224b7eaa22ec8418ee01f5b /debian/apt-daily.service
parent25a694165ae46c159e0d91bf0b27717f00dbc66e (diff)
Use the ConditionACPower feature of systemd in the apt-daily service
.. instead of hardcoding the functionnality in the apt.systemd.daily script. Also make the compatibility cron job provide the same functionnality for systems that do not use systemd. Closes: #827930
Diffstat (limited to 'debian/apt-daily.service')
-rw-r--r--debian/apt-daily.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/apt-daily.service b/debian/apt-daily.service
index 941263d05..904ed5d51 100644
--- a/debian/apt-daily.service
+++ b/debian/apt-daily.service
@@ -1,6 +1,7 @@
[Unit]
Description=Daily apt activities
Documentation=man:apt(8)
+ConditionACPower=true
[Service]
Type=oneshot