using lirc init script restart function fails sometimes

Bug #460027 reported by Toby Murray
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lirc

Using lircd 0.8.6 on Mythbuntu 9.10:
Using "/etc/init.d/lirc restart" successfully shuts down lircd however it fails to start back up even though the output on the console indicates that it started (the [ OK ] on the right)
If I then immediately run "/etc/init.d/lirc start" it starts up fine.

I believe it is just a simple timing problem. Maybe it takes lircd half a second or so to shut down but the init script is not waiting for it. When the new instance tries to start, it can't grab the resources it needs because the old one is still holding on to them.

For me, simply adding a "sleep 1" in the restart function right after the call to "stop" (line 222) fixes this problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lirc - 0.9.4c-1

---------------
lirc (0.9.4c-1) experimental; urgency=medium

  * New upstream release.
  * New tool irtext2udp.
  * Resolves build errors on kernels > 4.8.0A.
  * Most of patches upstreamed.

 -- Alec Leamas <email address hidden> Sat, 22 Oct 2016 14:52:05 +0200

Changed in lirc (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.