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
=== modified file 'debian/changelog'
--- debian/changelog 2012-04-20 04:06:59 +0000
+++ debian/changelog 2012-04-25 12:53:26 +0000
@@ -1,3 +1,12 @@
1upstart (1.5-0ubuntu7) precise-proposed; urgency=low
2
3 * debian/upstart-job: Only attempt to handle disabled jobs if the running
4 version of Upstart supports such a query (LP: #985755, #984474).
5 * debian/manpages/upstart-events.7: Fixed typo and corrected reference to
6 'kill signal' stanza.
7
8 -- James Hunt <james.hunt@ubuntu.com> Wed, 25 Apr 2012 13:46:00 +0100
9
1upstart (1.5-0ubuntu6) UNRELEASED; urgency=low10upstart (1.5-0ubuntu6) UNRELEASED; urgency=low
211
3 * debian/upstart.logrotate: don't create empty files after rotation;12 * debian/upstart.logrotate: don't create empty files after rotation;
413
=== modified file 'debian/manpages/upstart-events.7'
--- debian/manpages/upstart-events.7 2012-03-28 11:01:43 +0000
+++ debian/manpages/upstart-events.7 2012-04-25 12:53:26 +0000
@@ -322,7 +322,7 @@
322events are emitted with appropriate variables set denoting the error.322events are emitted with appropriate variables set denoting the error.
323.\"323.\"
324.IP \n+[step] 3324.IP \n+[step] 3
325Assuming the pre\-start did not fail or did not called "stop", the main325Assuming the pre\-start did not fail or did not call "stop", the main
326process is spawned.326process is spawned.
327.\"327.\"
328.IP \n+[step] 3328.IP \n+[step] 3
@@ -397,8 +397,8 @@
397.af step2 i397.af step2 i
398.IP \n[step2] 3398.IP \n[step2] 3
399The signal specified by the399The signal specified by the
400.B kill400.B kill signal
401stanza is sent to the process group of the main process.401stanza is sent to the process group of the main process
402(such that all processes belonging to the jobs main process are killed).402(such that all processes belonging to the jobs main process are killed).
403By default this signal is403By default this signal is
404.BR SIGTERM "."404.BR SIGTERM "."
405405
=== modified file 'debian/upstart-job'
--- debian/upstart-job 2012-04-10 08:25:51 +0000
+++ debian/upstart-job 2012-04-25 12:53:26 +0000
@@ -37,7 +37,26 @@
37$ECHO "Rather than invoking init scripts through /etc/init.d, use the service(8)"37$ECHO "Rather than invoking init scripts through /etc/init.d, use the service(8)"
38$ECHO "utility, e.g. service $INITSCRIPT $COMMAND"38$ECHO "utility, e.g. service $INITSCRIPT $COMMAND"
3939
40initctl show-config -e "$JOB"|grep -q '^ start on' || DISABLED=140# Only check if jobs are disabled if the currently _running_ version of
41# Upstart (which may be older than the latest _installed_ version)
42# supports such a query.
43#
44# This check is necessary to handle the scenario when upgrading from a
45# release without the 'show-config' command (introduced in
46# Upstart for Ubuntu version 0.9.7) since without this check, all
47# installed packages with associated Upstart jobs would be considered
48# disabled.
49#
50# Once Upstart can maintain state on re-exec, this change can be
51# dropped (since the currently running version of Upstart will always
52# match the latest installed version).
53
54UPSTART_VERSION_RUNNING=$(initctl version|awk '{print $3}'|tr -d ')')
55
56if dpkg --compare-versions "$UPSTART_VERSION_RUNNING" ge 0.9.7-1
57then
58 initctl show-config -e "$JOB"|grep -q '^ start on' || DISABLED=1
59fi
4160
42case $COMMAND in61case $COMMAND in
43status)62status)

Subscribers

People subscribed via source and target branches

to all changes: