Merge lp://qastaging/~jamesodhunt/ubuntu/natty/upstart/proposed-stage2 into lp://qastaging/ubuntu/natty/upstart

Proposed by James Hunt
Status: Merged
Merged at revision: 1299
Proposed branch: lp://qastaging/~jamesodhunt/ubuntu/natty/upstart/proposed-stage2
Merge into: lp://qastaging/ubuntu/natty/upstart
Diff against target: 10174 lines (+6476/-723)
43 files modified
ChangeLog (+342/-0)
Makefile.am (+1/-1)
Makefile.in (+1/-1)
NEWS (+42/-0)
conf/rc-sysinit.conf (+2/-0)
configure (+12/-11)
configure.ac (+3/-2)
contrib/bash_completion/upstart (+34/-10)
dbus/upstart.h (+1/-1)
debian/changelog (+58/-0)
debian/control (+2/-1)
debian/manpages/upstart-events.7 (+263/-0)
debian/rules (+1/-1)
debian/upstart.bash-completion (+1/-0)
debian/upstart.manpages (+1/-0)
extra/Makefile.am (+23/-3)
extra/Makefile.in (+83/-25)
extra/conf/upstart-socket-bridge.conf (+16/-0)
extra/conf/upstart-udev-bridge.conf (+2/-0)
extra/man/socket-event.7 (+92/-0)
extra/man/upstart-socket-bridge.8 (+47/-0)
extra/man/upstart-udev-bridge.8 (+27/-5)
init/control.c (+32/-6)
init/control.h (+14/-0)
init/main.c (+224/-137)
init/man/init.5 (+90/-36)
init/man/init.8 (+32/-3)
init/paths.h (+31/-6)
po/en@boldquot.po (+248/-133)
po/en@quot.po (+248/-133)
po/upstart.pot (+240/-134)
scripts/Makefile.am (+25/-0)
scripts/Makefile.in (+530/-0)
scripts/init-checkconf.sh (+208/-0)
scripts/initctl2dot.py (+543/-0)
scripts/man/init-checkconf.8 (+54/-0)
scripts/man/initctl2dot.8 (+87/-0)
util/Makefile.am (+1/-1)
util/Makefile.in (+1/-1)
util/initctl.c (+1019/-19)
util/initctl.h (+458/-0)
util/man/initctl.8 (+196/-33)
util/tests/test_initctl.c (+1141/-20)
To merge this branch: bzr merge lp://qastaging/~jamesodhunt/ubuntu/natty/upstart/proposed-stage2
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+53424@code.qastaging.launchpad.net

This proposal supersedes a proposal from 2011-03-11.

Description of the change

  * New upstream release 0.9.3:
    - Added missing emits stanzas for supplied .conf files.
    - Added wildcard/globbing facility to initctl.c (for check-config
      command).
    - Updated man page on emits stanza syntax.
* scripts/Makefile.am: Install improvements for
  "make distcheck". Added uninstall for scripts.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote : Posted in a previous version of this proposal
Download full text (9.3 KiB)

On Mon, Mar 07, 2011 at 03:42:04PM -0000, James Hunt wrote:
> === modified file 'debian/changelog'
> --- debian/changelog 2011-02-28 21:05:32 +0000
> +++ debian/changelog 2011-03-07 15:40:32 +0000
> @@ -1,3 +1,39 @@
> +upstart (0.9.1-1ubuntu4) natty; urgency=low
> +
> + * Merge of upstream lp:~upstart-devel/upstart/0.9.
> +
> + -- James Hunt <email address hidden> Mon, 07 Mar 2011 15:08:35 +0000

I assume I should use
https://launchpad.net/~jamesodhunt/+archive/upstart-testing/+files/upstart_0.9.1.orig.tar.gz
for this? It'll be somewhat behind the upstream you merged in this
change, but I assume you don't mind about that so much?

(I'm not going to pretend to have done an exhaustive documentation
review, I'm afraid, but a few things that I happened to spot:)

> +Note that the \'<\' and \'>\' characters in the \fITime\fP column denote
> +that the event in the \fIEvent\fP column occurs respectively before or
> +after the event specified in the \fITime\fP column (for example, the
> +\fBmounting\fP(7) event occurs "at some time" after the \fBstartup\fP(7)
> +event, and the \fBvirtual-filesystems\fP(7) event occurs after the last
> +\fBmounted\fP(7) event relating to a virtual filesystem has been emitted).

You probably ought to use \- rather than - in event names and the like,
to avoid groff marking them up as hyphens in some cases. (It doesn't
make much difference with the default groff configuration in Ubuntu,
though.)

> +These are specific examples. \fBupstart-udev-bridge\fP(8) will emit
> +events which match the pattern, "\fIS\fP-device-\fIA\fP" where \'S\' is
> +the udev \fIsubsystem\fP and \'A\' is the udev \fIaction\fP. See
> +\fBudev\fP(7) and for further details. If you have
> +.BR sysfs (2)
> +mounted, you can look in \fI/sys/class/\fP for possible values for subsystem.

sysfs(2) is an obsolete system call, and not a helpful cross-reference
here. If there were a manual page for /sys, I'd expect to find it in
section 5 alongside proc(5), but it doesn't seem to exist.

> +It then ascertains the \fIfinal\fP PID for the job which may be a
> +descendent of the immediate child process if \fBexpect fork\fP or

Typo: "descendant".

> +.SH REPORTING BUGS
> +Report bugs at
> +.RB < https://launchpad.net/ubuntu/+source/upstart/+bugs >

Do you actually want this to be the upstream bug reporting URL?
Perhaps https://launchpad.net/upstart/+bugs instead?

> === added file 'extra/conf/upstart-socket-bridge.conf'
> --- extra/conf/upstart-socket-bridge.conf 1970-01-01 00:00:00 +0000
> +++ extra/conf/upstart-socket-bridge.conf 2011-03-07 15:40:32 +0000
> @@ -0,0 +1,14 @@
> +# upstart-socket-bridge - Bridge socket events into upstart
> +#
> +# This helper daemon receives socket(7) events and
> +# emits equivalent Upstart events.
> +
> +description "Bridge socket events into upstart"
> +
> +start on runlevel [2345]
> +stop on runlevel [!2345]

Do we actually want to stop this in single-user mode? It kind of seems
like a core facility of upstart that just happens to be in a single
process because it's more convenient that way. Plus I can imagine that
only starting this once we're in a full runlevel might be a bit late,
especially for Unix sockets.

...

Read more...

review: Needs Fixing
Revision history for this message
James Hunt (jamesodhunt) wrote : Posted in a previous version of this proposal

Hi Colin,

Thanks very much for an exceedingly comprehensive review. I've made all
the changes you've specified with 2 exceptions:

* debian/manpages/upstart-events.7: This man page isn't available
  upstream since it documents the "Ubuntu way", so I think the URL is
  correct, unless we decide to push this upstream?

* init/main/init.5:
  > +Note that a user job configuration file cannot have the same name as a
  > +system job configuration file.
  Having looked at the session support code, I'm not sure this is a namespace leak but I
  agree that I think it is a bug: Upstart matches against system jobs first, but it does stop
  non-priv users from manipulating jobs they don't own. Trouble is, previous versions of
  Upstart allowed non-priv to run "initctl list" so we maintain compatibility, but by imposing a
  seemingly artificial restriction on user job names. As discussed, there is no D-Bus method that
  initctl can call to query session details. This seems like an oversight, so if you're happy to
  allow this branch to land, I'll investigate this later (I've raised bug 732656 to cover it).

Revision history for this message
Colin Watson (cjwatson) wrote : Posted in a previous version of this proposal

On Thu, Mar 10, 2011 at 03:43:34PM -0000, James Hunt wrote:
> * debian/manpages/upstart-events.7: This man page isn't available
> upstream since it documents the "Ubuntu way", so I think the URL is
> correct, unless we decide to push this upstream?

Sorry, I meant to delete this part of my review having spotted the same
thing, but apparently didn't (perhaps an undo accident). You're quite
right, of course.

> * init/main/init.5:
> > +Note that a user job configuration file cannot have the same name as a
> > +system job configuration file.
> Having looked at the session support code, I'm not sure this is a namespace leak but I
> agree that I think it is a bug: Upstart matches against system jobs first, but it does stop
> non-priv users from manipulating jobs they don't own. Trouble is, previous versions of
> Upstart allowed non-priv to run "initctl list" so we maintain compatibility, but by imposing a
> seemingly artificial restriction on user job names. As discussed, there is no D-Bus method that
> initctl can call to query session details. This seems like an oversight, so if you're happy to
> allow this branch to land, I'll investigate this later (I've raised bug 732656 to cover it).

Understood, and I agree with your compatibility point. I don't think
this needs to block landing of this branch.

Revision history for this message
Colin Watson (cjwatson) wrote :

Looks good now. I'll go ahead and upload this. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: