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

2012-06-13 Thread Bill Turner
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 21
   sleep 30
  ! $upsdrvctl start /dev/null 21\
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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/916956

Title:
  upstart does not start cupsd and nut/upsd

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2012-05-05 Thread Bill Turner
No problem with cups butI have the same problem for nut in Ubuntu
Precise (1204) - nut starts no error from a console command
(/etc/init.d/nut start) but does not start automatically. Much searching
has not returned any further help. I tried putting a nut.conf in
/etc/init like :-

start on runlevel [2345]
# respawn
# expect fork
exec /etc/init.d/nut start

and that works if I issue a start nut  but still no auto start.  Tried with 
and without the respawn and expect fork - no difference but I expect there 
would not be anyway. I don't see any errors in the syslog. Nothing in nut.log 
either.
The standard package works perfectly in Ubuntu Oneiric (1110).
I absolutely cannot move to 1204 with this outstanding - our main supply here 
is unreliable at times and a UPS is essential. Any progress?

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

Title:
  upstart does not start cupsd and nut/upsd

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2012-05-05 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: upstart (Ubuntu)
   Status: New = Confirmed

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

Title:
  upstart does not start cupsd and nut/upsd

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2012-01-16 Thread Oliver Kluge
** Summary changed:

- upstart does not start cupsd and nutd
+ upstart does not start cupsd and nut/upsd

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

Title:
  upstart does not start cupsd and nut/upsd

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs