[Bug 936835] Re: Resolvconf error condition on enable/disable update should reflect success of just that

Thomas Hood 936835 at bugs.launchpad.net
Tue Feb 21 09:21:32 UTC 2012


*** This bug is a duplicate of bug 927803 ***
    https://bugs.launchpad.net/bugs/927803

I have installed 1.63ubuntu8 and everything seems to work perfectly now
on my Oneiric-with-some-Precise-bits laptop.

$ dpkg -l resolvconf postfix upstart
[...]
ii  postfix        2.8.7-1ubuntu2 High-performance mail transport agent
ii  resolvconf     1.63ubuntu8    name server information handler
ii  upstart        1.4-0ubuntu8   event-based init daemon
$ status resolvconf
resolvconf start/running
# ls -l /var/log/upstart/resolvconf.log
-rw-r----- 1 root root 0 2012-02-19 10:55 /var/log/upstart/resolvconf.log

Thanks!
-- 
Thomas

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to resolvconf in Ubuntu.
https://bugs.launchpad.net/bugs/936835

Title:
  Resolvconf error condition on enable/disable update should reflect
  success of just that

Status in “resolvconf” package in Ubuntu:
  In Progress

Bug description:
  For background see #933566.

  When Upstart attempts to start a job and the pre-start script returns
  an error, Upstart will consider the job not to have been started.

  Because resolvconf is treated as an Upstart job, resolvconf updates
  being enabled/disable should correspond to resolvconf Upstart job
  being "started"/"stopped".

  So the resolvconf job pre-start script should return an error when and
  only when updates could not be enabled.

  Making this so requires that resolvconf (1.63ubuntu7) be patched as
  follows.

  $ diff -u resolvconf_ORIG resolvconf
  --- resolvconf_ORIG	2012-02-19 16:49:46.725254960 +0100
  +++ resolvconf	2012-02-19 16:51:39.277257572 +0100
  @@ -113,9 +113,9 @@
    fi
    ;;
     --enable-updates)
  -	: >| "$ENABLE_UPDATES_FLAGFILE"
  +	: >| "$ENABLE_UPDATES_FLAGFILE" || exit 1
    if [ -e "$POSTPONED_UPDATE_FLAGFILE" ] ; then
  -	 update_and_exit -u
  +	 (update_and_exit -u) || :
    fi
    exit 0
    ;;

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/936835/+subscriptions




More information about the foundations-bugs mailing list