Your message dated Tue, 22 May 2012 21:17:37 +0000
with message-id <[email protected]>
and subject line Bug#671446: fixed in anacron 2.3-19
has caused the Debian Bug report #671446,
regarding anacron: native upstart support
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
671446: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671446
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: anacron
Version: 2.3-18
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu quantal ubuntu-patch
Hi Peter,
With the policy proposal for upstart in Debian gradually solidifying in bug
#591791, I thought it might be time to look at forwarding some upstart jobs
from Ubuntu into Debian while doing package merges for the quantal release.
Anacron happened to be first on my list, so here goes. :)
The attached patch adds an upstart job for anacron, which will be used in
preference over the init script when upstart is installed. Explanatory
changelog entry from the Ubuntu package:
* Add native upstart support.
* Don't bother with starting anacron on install, since it will be started
soon from cron or at boot.
There are several caveats here.
- If building with debhelper (<< 9.20120410), including with debhelper
8.0.0 in squeeze, the package will end up with a hard dependency on
upstart. That's probably not what you want; but I'm not sure if it's
worth adding a versioned build-dependency here. That probably depends on
whether you expect there to be backports of the package.
- invoke-rc.d needs a patch yet to make it actually look at the upstart job
instead of the init script (bug #671284). Since anacron is itself a
short-lived service, it's probably not fatal in this case to have an
unpatched invoke-rc.d; and the next upload of upstart to Debian will
certainly add a dependency on the patched sysvinit-utils. So it's up to
you if you'd like to wait and add an explicit dependency.
- The init_is_upstart helper function is not yet implemented by the
lsb-base package. This is even less impact than the previous issue; if
the function is not available, the init script will assume upstart is not
available and do the right thing anyway. So I don't think there's any
reason to wait for lsb-base.
Thanks for considering the patch.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
[email protected] [email protected]
=== modified file 'debian/changelog'
=== modified file 'debian/init.d'
--- debian/init.d 2012-03-29 21:09:47 +0000
+++ debian/init.d 2012-05-02 06:05:50 +0000
@@ -24,6 +24,9 @@
case "$1" in
start)
+ if init_is_upstart 2>/dev/null; then
+ exit 1
+ fi
log_daemon_msg "Starting anac(h)ronistic cron" "anacron"
if test x"$ANACRON_RUN_ON_BATTERY_POWER" != x"yes" && test -x /usr/bin/on_ac_power
then
@@ -46,6 +49,10 @@
:
;;
stop)
+ if init_is_upstart 2>/dev/null && status anacron 2>/dev/null | grep -q start
+ then
+ exit 0
+ fi
log_daemon_msg "Stopping anac(h)ronistic cron" "anacron"
start-stop-daemon --stop --exec /usr/sbin/anacron --oknodo --quiet
log_end_msg 0
=== modified file 'debian/rules'
--- debian/rules 2012-03-29 21:09:47 +0000
+++ debian/rules 2012-05-01 05:12:25 +0000
@@ -17,4 +17,4 @@
dh_installcron --name=0anacron
override_dh_installinit:
- dh_installinit -u"start 89 2 3 4 5 ."
+ dh_installinit --no-start -u"start 89 2 3 4 5 ."
=== added file 'debian/upstart'
--- debian/upstart 1970-01-01 00:00:00 +0000
+++ debian/upstart 2012-05-01 05:08:44 +0000
@@ -0,0 +1,14 @@
+# anacron - anac(h)ronistic cron
+#
+# anacron executes commands at specific periods, but does not assume that
+# the machine is running continuously
+
+description "anac(h)ronistic cron"
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+expect fork
+normal exit 0
+
+exec anacron -s
--- End Message ---
--- Begin Message ---
Source: anacron
Source-Version: 2.3-19
We believe that the bug you reported is fixed in the latest version of
anacron, which is due to be installed in the Debian FTP archive:
anacron_2.3-19.debian.tar.gz
to main/a/anacron/anacron_2.3-19.debian.tar.gz
anacron_2.3-19.dsc
to main/a/anacron/anacron_2.3-19.dsc
anacron_2.3-19_i386.deb
to main/a/anacron/anacron_2.3-19_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Peter Eisentraut <[email protected]> (supplier of updated anacron package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 22 May 2012 23:35:28 +0300
Source: anacron
Binary: anacron
Architecture: source i386
Version: 2.3-19
Distribution: unstable
Urgency: low
Maintainer: Peter Eisentraut <[email protected]>
Changed-By: Peter Eisentraut <[email protected]>
Description:
anacron - cron-like program that doesn't go by time
Closes: 671446
Changes:
anacron (2.3-19) unstable; urgency=low
.
* Move source format to 3.0 (quilt) with single-debian-patch (adapted
from Russ Allbery's packages)
* Add native upstart support (patch from Steve Langasek) (closes: #671446)
* Don't bother with starting anacron on install, since it will be
started soon from cron or at boot (helps upstart support).
Checksums-Sha1:
43c8515c67172ed25ce993f6258d09cc3ce8c900 1231 anacron_2.3-19.dsc
5f8485685b9dbcd639737832f2bf542c06967b21 19511 anacron_2.3-19.debian.tar.gz
da97bb4be5b7f9dcc36483c201a6db2f894a659b 34740 anacron_2.3-19_i386.deb
Checksums-Sha256:
b9ca85bdfb21a9103515f4e41a9a7212680f1df6cf9f5605de63304844bae94b 1231
anacron_2.3-19.dsc
07e5f54ae67b3a422c7c93377a5562586c967726db422e7d7bbe4d8e79c78553 19511
anacron_2.3-19.debian.tar.gz
d22125cf28e5bef7e18d28c89c9218d355d129a5e8540db3a3123e20cf304274 34740
anacron_2.3-19_i386.deb
Files:
34cd8a43a27104618b2e23d6a1729b1e 1231 admin optional anacron_2.3-19.dsc
9bc81cfb7324e02b7516f69ccc879036 19511 admin optional
anacron_2.3-19.debian.tar.gz
4eeaeda132b3dede849e604e1dfa7451 34740 admin optional anacron_2.3-19_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAk+7+RcACgkQTTx8oVVPtMZSTgCfc/ztHsX3EF2+iB1YY1omQdqc
P5YAoJgBQ+sbG0H9/cMRwcMA1Fp9vmam
=ioFA
-----END PGP SIGNATURE-----
--- End Message ---