Merge lp:~vorlon/ubuntu/precise/upstart/lp.876626 into lp:ubuntu/precise/upstart

Proposed by Steve Langasek
Status: Merged
Merged at revision: 1392
Proposed branch: lp:~vorlon/ubuntu/precise/upstart/lp.876626
Merge into: lp:ubuntu/precise/upstart
Diff against target: 45 lines (+8/-13)
2 files modified
debian/changelog (+4/-0)
init/main.c (+4/-13)
To merge this branch: bzr merge lp:~vorlon/ubuntu/precise/upstart/lp.876626
Reviewer Review Type Date Requested Status
James Hunt (community) Approve
Review via email: mp+103372@code.launchpad.net

Description of the change

Hi James,

Here's a branch that reverts the console handling in upstart for Ubuntu, as
discussed. If this looks good to you, I can include it for an SRU to
precise.

I've made a similar change for oneiric, but for some reason launchpad
doesn't have a UDD branch for oneiric-updates, so I've uploaded that one
directly to the SRU queue.

To post a comment you must log in.
Revision history for this message
James Hunt (jamesodhunt) wrote :

Looks fine to me.

review: Approve

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-24 20:35:37 +0000
@@ -2,6 +2,10 @@
22
3 * debian/upstart.logrotate: don't create empty files after rotation;3 * debian/upstart.logrotate: don't create empty files after rotation;
4 upstart will automatically create new log files for jobs as needed.4 upstart will automatically create new log files for jobs as needed.
5 * init/main.c: restore the fix for bug #540256; we know the console setup
6 is taken care of by plymouth in Ubuntu, so upstart changing the console
7 settings just makes trouble (such as turning echo back on when it
8 shouldn't be). LP: #876626.
59
6 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 19 Apr 2012 21:06:24 -070010 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 19 Apr 2012 21:06:24 -0700
711
812
=== modified file 'init/main.c'
--- init/main.c 2012-03-22 14:38:46 +0000
+++ init/main.c 2012-04-24 20:35:37 +0000
@@ -244,22 +244,13 @@
244 * resetting it to sane defaults unless we're inheriting from another244 * resetting it to sane defaults unless we're inheriting from another
245 * init process which we know left it in a sane state.245 * init process which we know left it in a sane state.
246 */246 */
247 if (system_setup_console (CONSOLE_OUTPUT, (! restart)) < 0) {247 if (system_setup_console (CONSOLE_NONE, (! restart)) < 0) {
248 NihError *err;
249
250 err = nih_error_get ();248 err = nih_error_get ();
251 nih_warn ("%s: %s", _("Unable to initialize console, will try /dev/null"),249 nih_fatal ("%s: %s", _("Unable to initialize console as /dev/null"),
252 err->message);250 err->message);
253 nih_free (err);251 nih_free (err);
254 252
255 if (system_setup_console (CONSOLE_NONE, FALSE) < 0) {253 exit (1);
256 err = nih_error_get ();
257 nih_fatal ("%s: %s", _("Unable to initialize console as /dev/null"),
258 err->message);
259 nih_free (err);
260
261 exit (1);
262 }
263 }254 }
264255
265 /* Set the PATH environment variable */256 /* Set the PATH environment variable */

Subscribers

People subscribed via source and target branches