using lirc init script restart function fails sometimes
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.
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