FS#20676 - [lirc-utils] Lircd init script needs improvement

Attached to Project: Arch Linux
Opened by Simon Perry (pezz) - Monday, 30 August 2010, 14:04 GMT
Last edited by Andrea Scarpino (BaSh) - Wednesday, 08 September 2010, 13:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Hugo Doria (hdoria)
Dan Griffiths (Ghost1227)
Giovanni Scafora (giovanni)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The lircd init script does a blind ln without verifying that /var/run/lirc exists:

---- 8< ----

LIRCD_SOCKET=/var/run/lirc/lircd
case "$1" in
start)
stat_busy "Starting LIRC Daemon"
rm -f $LIRCD_SOCKET && ln -s $LIRCD_SOCKET $LIRCD_SYMLINKFILE

---- 8< ----

If you mount /var/run on tmpfs like I do, this causes the script to fail after a reboot and not start lircd.

It'd be nice if the script was a but smarter about checking and creating /var/run/lirc.

Cheers.

Additional info:
* lirc-utils 0.8.6-3

Steps to reproduce:

* Remove /var/run/lirc and try and start the daemon with /etc/rc.d/lircd
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Wednesday, 08 September 2010, 13:32 GMT
Reason for closing:  Implemented
Additional comments about closing:  lirc-utils 0.8.6-4
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 30 August 2010, 17:29 GMT
Also assigned to OT, since Hugo is not around here.

Loading...