Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#40 LCDd init script in RPM package will prevent normal boot

major
closed-fixed
Markus Dolze
server (16)
5
2012-02-18
2012-02-16
Hugh Sparks
No

SysV init scripts have a header with comments that are interpeted during the startup process.
Recently, the systemd startup manager used by Fedora, Redhat,, and others, started taking the
pidfile comment in this header seriously. If a pidfile is specified, the system will hang up during
boot waiting for the pid file to appear.

The change came about in systemd-37-11 and is designed to speed up the boot process by
starting daemons in parallel and later waiting for them to show they've started. It is now used
for legacy sysV init scripts such as the one used to start LCDd.

The LCDd init script contains a pidfile comment:

# pidfile: /var/run/LCDd.pid

But no such file is ever created. Consequently systems with the new systemd package will hang during boot.

The fix is simple: Remove the pidfile comment.
Enclosed is a fixed version of the file: init-LCDd.rpm.in

Discussion

  • Hugh Sparks
    Hugh Sparks
    2012-02-16

    The pidfile comment is removed.

     
    Attachments
  • Markus Dolze
    Markus Dolze
    2012-02-18

    • assigned_to: nobody --> mmdolze
    • status: open --> closed-fixed
     
  • Markus Dolze
    Markus Dolze
    2012-02-18

    Fixed in CVS (both current and lcdproc-0-5-x stable). Added a note to the 'known bugs' sections of the release Readme.txt.