[Bug 916956] Re: upstart does not start cupsd and nut/upsd

Bill Turner 916956 at bugs.launchpad.net
Thu Jun 14 05:41:47 UTC 2012


In my case which is a UPS connected via a serial port. it appears to be
a timing problem - looks like upsmon is not ready when upsdrvctl is
executed in the standard init.d/nut script but am not entirely sure of
that since I have not looked at the upsdrvctl code. Anyway. as a
workaround,  modified the nut script function start_stop_server "start"
case paragraph to start upsd first and upsdrvctl second with a 30 second
pause between as follows :-

        start)
          start-stop-daemon -S -q -p $upsd_pid -x $upsd \
	          -- $UPSD_OPTIONS >/dev/null 2>&1
	   sleep 30
          ! $upsdrvctl start >/dev/null 2>&1  &&  \
            log_progress_msg "(driver(s) failed)" || log_progress_msg "driver(s)"
          ;;

Then it works reliably. 15 Seconds is not enough, 30 seconds is
sufficient but may be too much - probably not the most elegant solution
but I'm happy with it. If the developer would like me to try other
solutions, I'm happy to assist.

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

Title:
  upstart does not start cupsd and nut/upsd

Status in “upstart” package in Ubuntu:
  Confirmed

Bug description:
  On my 10.04.3 LTS cupsd never starts automatically, although it is
  configured to do so. Even manually adding cupsd to the Start Programs
  dialog doesn't do the trick.

  Starting cupsd manually works absolutely flawless.

  The same happens with nutd. Nut is never started automatically, but
  start with no errors when done from a shell.

  I have browsed several bug reports on and off Launchpad describing the
  problem as a bug in Upstart (Upstart experiencing a race condition
  that may render the console read-only), that was already fixed by the
  Upstart devs.  There is also a Launchpad bug - that is closed because
  there is a bugfix. But as long as the bugfix is not rolled out to
  users... Several people beg to re-open this.

  I am using 10.04 LTS - and it still sticks to version 0.6.5-8 of
  upstart. Obvoiously no modern version of Upstart ever got released for
  Lucid. I cannot upgrade Upstart without major operations beyond normal
  packet installation routine, and I do not want to risk rendering my
  system unusable if Upstart completely fails after upgrading it to
  unsupported versions.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: upstart 0.6.5-8
  ProcVersionSignature: Ubuntu 2.6.32-37.81-generic 2.6.32.49+drm33.21
  Uname: Linux 2.6.32-37-generic x86_64
  Architecture: amd64
  Date: Sun Jan 15 23:20:45 2012
  InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
  ProcEnviron:
   LANG=de_DE.utf8
   SHELL=/bin/bash
  SourcePackage: upstart

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




More information about the foundations-bugs mailing list