Merge lp:~jamesodhunt/ubuntu/precise/upstart/bugs-985755+984474 into lp:ubuntu/precise/upstart

Proposed by James Hunt
Status: Merged
Merged at revision: 1393
Proposed branch: lp:~jamesodhunt/ubuntu/precise/upstart/bugs-985755+984474
Merge into: lp:ubuntu/precise/upstart
Diff against target: 72 lines (+32/-4)
3 files modified
debian/changelog (+9/-0)
debian/manpages/upstart-events.7 (+3/-3)
debian/upstart-job (+20/-1)
To merge this branch: bzr merge lp:~jamesodhunt/ubuntu/precise/upstart/bugs-985755+984474
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Needs Information
Ubuntu branches Pending
Review via email: mp+102805@code.launchpad.net

Description of the change

* debian/upstart-job: Only attempt to handle disabled jobs if the running
  version of Upstart supports such a query (LP: #985755, #984474).

* debian/manpages/upstart-events.7: Fixed typo and corrected reference to
  'kill signal' stanza.

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Could you add some brief information based on https://wiki.ubuntu.com/StableReleaseUpdates#Procedure to the bug reports and change the debian/changelog entry from 'precise' to 'precise-proposed'?

review: Needs Information
1393. By James Hunt

Changed release to precise-proposed.

Revision history for this message
James Hunt (jamesodhunt) wrote :

Hi Daniel - thanks for reviewing. changelog updated and bug 985755 updated wrt the stable release procedure.

1394. By James Hunt

fixup changelog after version collision with slangasek's logrotate change.

Revision history for this message
Steve Langasek (vorlon) wrote :

since this is an active bzr branch, it's much better if you:

- run echo DEBCHANGE_RELEASE_HEURISTIC=changelog >> ~/.devscripts
- always use 'dch' by itself when updating the changelog
- leave the upload target as 'UNRELEASED' when proposing branches for merge

This branch shouldn't be incrementing the package version above the still-unreleased version in the trunk; when collaborating in a VCS with multiple changes in a single upload, marking the upload target should be the last step, to be handled by the uploader after merging. Using the above recipe facilitates this.

Revision history for this message
James Hunt (jamesodhunt) wrote :

Ok, thanks Steve!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-04-20 04:06:59 +0000
3+++ debian/changelog 2012-04-25 12:53:26 +0000
4@@ -1,3 +1,12 @@
5+upstart (1.5-0ubuntu7) precise-proposed; urgency=low
6+
7+ * debian/upstart-job: Only attempt to handle disabled jobs if the running
8+ version of Upstart supports such a query (LP: #985755, #984474).
9+ * debian/manpages/upstart-events.7: Fixed typo and corrected reference to
10+ 'kill signal' stanza.
11+
12+ -- James Hunt <james.hunt@ubuntu.com> Wed, 25 Apr 2012 13:46:00 +0100
13+
14 upstart (1.5-0ubuntu6) UNRELEASED; urgency=low
15
16 * debian/upstart.logrotate: don't create empty files after rotation;
17
18=== modified file 'debian/manpages/upstart-events.7'
19--- debian/manpages/upstart-events.7 2012-03-28 11:01:43 +0000
20+++ debian/manpages/upstart-events.7 2012-04-25 12:53:26 +0000
21@@ -322,7 +322,7 @@
22 events are emitted with appropriate variables set denoting the error.
23 .\"
24 .IP \n+[step] 3
25-Assuming the pre\-start did not fail or did not called "stop", the main
26+Assuming the pre\-start did not fail or did not call "stop", the main
27 process is spawned.
28 .\"
29 .IP \n+[step] 3
30@@ -397,8 +397,8 @@
31 .af step2 i
32 .IP \n[step2] 3
33 The signal specified by the
34-.B kill
35-stanza is sent to the process group of the main process.
36+.B kill signal
37+stanza is sent to the process group of the main process
38 (such that all processes belonging to the jobs main process are killed).
39 By default this signal is
40 .BR SIGTERM "."
41
42=== modified file 'debian/upstart-job'
43--- debian/upstart-job 2012-04-10 08:25:51 +0000
44+++ debian/upstart-job 2012-04-25 12:53:26 +0000
45@@ -37,7 +37,26 @@
46 $ECHO "Rather than invoking init scripts through /etc/init.d, use the service(8)"
47 $ECHO "utility, e.g. service $INITSCRIPT $COMMAND"
48
49-initctl show-config -e "$JOB"|grep -q '^ start on' || DISABLED=1
50+# Only check if jobs are disabled if the currently _running_ version of
51+# Upstart (which may be older than the latest _installed_ version)
52+# supports such a query.
53+#
54+# This check is necessary to handle the scenario when upgrading from a
55+# release without the 'show-config' command (introduced in
56+# Upstart for Ubuntu version 0.9.7) since without this check, all
57+# installed packages with associated Upstart jobs would be considered
58+# disabled.
59+#
60+# Once Upstart can maintain state on re-exec, this change can be
61+# dropped (since the currently running version of Upstart will always
62+# match the latest installed version).
63+
64+UPSTART_VERSION_RUNNING=$(initctl version|awk '{print $3}'|tr -d ')')
65+
66+if dpkg --compare-versions "$UPSTART_VERSION_RUNNING" ge 0.9.7-1
67+then
68+ initctl show-config -e "$JOB"|grep -q '^ start on' || DISABLED=1
69+fi
70
71 case $COMMAND in
72 status)

Subscribers

People subscribed via source and target branches

to all changes: