Bug 790922 - After update to systemd-37-11, the LCDd daemon hangs the boot process
Summary: After update to systemd-37-11, the LCDd daemon hangs the boot process
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: lcdproc
Version: 16
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Nicolas Chauvet (kwizart)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-15 17:56 UTC by Hugh Sparks
Modified: 2012-03-26 22:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 821270 (view as bug list)
Environment:
Last Closed: 2012-03-26 22:25:34 UTC
Type: ---


Attachments (Terms of Use)
The fixed LCDd init script. (3.09 KB, text/plain)
2012-02-15 17:58 UTC, Hugh Sparks
no flags Details

Description Hugh Sparks 2012-02-15 17:56:24 UTC
Description of problem:

    The system hangs during boot waiting for LCDd to start.

    I believe this problem will occur in all legacy sys5 init
    scripts that specify a pidfile, but who's associated daemons
    don't create one.

Version-Release number of selected component (if applicable):

    systemd-37-11.fc16.x86_65
    lcdproc-0.5.3.1.fc16.x86_64

How reproducible:

    Even time the system boots

Steps to Reproduce:

    1. Enable LCDd with appropropriate configuration for your hardware
    2. Enable LCDd at startup "chkconfig LCDd on"
    3. Reboot
  
Actual results:

    The system will hang for a long time. (5 minutes?)

Expected results:

    A normal boot.

Additional info:

    After the recent update to systemd-*-11-37, the pidfile comment
    in legacy sysV init scripts is used by the startup process to
    wait for the specified pid file to appear. This causes a hang
    during boot if a pidfile doesn't get created.

    The LCDd init script specifies a pidfile in its comment header,
    but the LCDd deamon doesn't create a pid file.

Work-around (suggested fix?)

    In the file:

        /etc/rc.d/init.d/LCD.d

    Remove the comment in the header that reads:
 
        # pidfile: /var/run/LCDd.pid

    The system will now boot normally and LCDd works fine.

    Enclosed is the fixed LCDd init script.

Comment 1 Hugh Sparks 2012-02-15 17:58:10 UTC
Created attachment 562288 [details]
The fixed LCDd init script.

Comment 2 Nicolas Chauvet (kwizart) 2012-03-10 19:40:14 UTC
Can you reproduce with lcdproc-0.5.5-3.fc17 ?


Note You need to log in before you can comment on or make changes to this bug.