Bug 790922

Summary: After update to systemd-37-11, the LCDd daemon hangs the boot process
Product: [Fedora] Fedora Reporter: Hugh Sparks <hugh>
Component: lcdprocAssignee: Nicolas Chauvet (kwizart) <kwizart>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: jarodwilson, kwizart
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 821270 (view as bug list) Environment:
Last Closed: 2012-03-26 22:25:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
The fixed LCDd init script. none

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 ?