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-08-31 13:13:41 +0200
commitd06d38bcc3335ee6bb448add9b91952e640dae05 (patch)
treef5ec410be128d363f9351e18eadb49e9055e1b9c /debian/apt-daily.service
parenta55db465eca2c4d9f0cb6f36640ee6a70634052d (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 (cherry picked from commit 51d659e7d8cdce59f910eceeee68e2c2afdb70d4)
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