[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#739052: wheezy-pu: package anacron/2.3-19+deb7u1



Package: release.debian.org
Severity: normal
Tags: wheezy
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-CC: anacron@packages.debian.org, mbiebl@debian.org, bigon@debian.org

Dear Release Team,

Please find attached a proposed update for anacron. It fixes #688665:
basically, if anacron is installed while systemd is PID 1, then daily cron jobs
are never run (unless the machine is rebooted or suspended/resumed).

The proposed fix consists in adding a .service file (see #688665 log for the
reasoning). Incidentally, note that this ensure that nothing is broken for
non-systemd users.

Cheers,

-- 
 .''`.    Sébastien Villemot
: :' :    Debian Developer
`. `'     http://www.dynare.org/sebastien
  `-      GPG Key: 4096R/381A7594
diff -Nru anacron-2.3/debian/anacron.service anacron-2.3/debian/anacron.service
--- anacron-2.3/debian/anacron.service	1970-01-01 00:00:00.000000000 +0000
+++ anacron-2.3/debian/anacron.service	2014-02-15 12:52:28.000000000 +0000
@@ -0,0 +1,9 @@
+[Unit]
+Description=Run anacron jobs
+After=time-sync.target
+
+[Service]
+ExecStart=/usr/sbin/anacron -dsq
+
+[Install]
+WantedBy=multi-user.target
diff -Nru anacron-2.3/debian/changelog anacron-2.3/debian/changelog
--- anacron-2.3/debian/changelog	2012-05-22 20:35:30.000000000 +0000
+++ anacron-2.3/debian/changelog	2014-02-15 12:52:28.000000000 +0000
@@ -1,3 +1,14 @@
+anacron (2.3-19+deb7u1) wheezy; urgency=low
+
+  * Non-maintainer upload.
+  * Add a systemd unit, so that daily jobs are run if systemd is PID 1
+    (patch based on work by Shawn Landden and Laurent Bigonville)
+    (closes: #688665)
+  * README.Debian: document that, under systemd, anacron cannot be
+    disabled while on battery power.
+
+ -- Sébastien Villemot <sebastien@debian.org>  Thu, 13 Feb 2014 21:09:09 +0100
+
 anacron (2.3-19) unstable; urgency=low
 
   * Move source format to 3.0 (quilt) with single-debian-patch (adapted
diff -Nru anacron-2.3/debian/README.debian anacron-2.3/debian/README.debian
--- anacron-2.3/debian/README.debian	2012-03-21 18:32:11.000000000 +0000
+++ anacron-2.3/debian/README.debian	2014-02-15 12:52:28.000000000 +0000
@@ -12,5 +12,7 @@
 Anacron leaves messages in /var/log/syslog and /var/log/messages by
 default.
 
-By default, anacron does not run while on battery power.  See
-/etc/default/anacron to change that.
+By default, anacron does not run while on battery power, see
+/etc/default/anacron to change that. Note however that if you are using
+systemd, anacron will run even while on battery power, and the setting in
+/etc/default/anacron will be ignored.
diff -Nru anacron-2.3/debian/rules anacron-2.3/debian/rules
--- anacron-2.3/debian/rules	2012-05-21 18:48:57.000000000 +0000
+++ anacron-2.3/debian/rules	2014-02-15 12:52:28.000000000 +0000
@@ -11,6 +11,7 @@
 	install -D -m 755 debian/apm.d debian/anacron/etc/apm/event.d/anacron
 	install -D -m 755 debian/pm-utils.power.d debian/anacron/usr/lib/pm-utils/power.d/anacron
 	install -D -m 755 debian/pm-utils.sleep.d debian/anacron/usr/lib/pm-utils/sleep.d/95anacron
+	install -D -m 644 debian/anacron.service debian/anacron/lib/systemd/system/anacron.service
 
 override_dh_installcron:
 	dh_installcron

Attachment: signature.asc
Description: Digital signature


Reply to: