Bug 168325
Summary: | IrDA Services (initscript) brocken in fc4 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | morgan read <mstuff> | ||||
Component: | irda-utils | Assignee: | Karsten Hopp <karsten> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4 | CC: | pebolle | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-08-01 12:36:50 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
morgan read
2005-09-14 23:41:01 UTC
I also ran into this. I even "patched" /etc/init.d/irda (and /etc/rc.d/init.d/functions) to correct this. Sadly, the machine I have this patch on, is now in repair. I'll try to attach my patch shortly. The problem is caused by daemon /usr/sbin/irattach ${DEVICE} ${ARGS} in start(). My analysis: irattach will fork quite quickly and the old process will exit(0) directly after forking. This has as a side effect that the initscript will always return success. All subsequent errors in daemon mode (for instance errors in [irattach/irattach.c:] start_tty()) will not be noticed by this initscript. (A less important issue is that the initscript uses /var/lock/subsys/irda. I think it would be more elegant to use irattachs pidfile: /var/run/irattach.pid. I corrected that also in my patch.) Please prod me if I haven't attached my patch in a few days. Created attachment 119282 [details]
patch to /etc/rc.d/init.d/irda (and to /etc/rc.d/init.d/functions)
As described in my earlier comment:
- adds --quiet option to daemon() in /etc/rc.d/init.d/functions
(that file is part of the initscripts rpm)
- uses that --quiet option in /etc/rc.d/init.d/irda
- uses /var/run/irattach.pid and not /var/lock/subsys/irda
I'd appreciate any comments.
I've added your patch to the irda initscript, but didn't add --quiet to functions. You need to propose this in a new bugzilla filed against initscripts |