Bug 821270 - LCDd does not create a PID file
Summary: LCDd does not create a PID file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lcdproc
Version: 17
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-05-13 18:36 UTC by Shawn Bohrer
Modified: 2012-08-01 18:29 UTC (History)
5 users (show)

Fixed In Version:
Clone Of: 790922
Environment:
Last Closed: 2012-08-01 18:29:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Corrected LCDd.service file (185 bytes, text/plain)
2012-06-22 17:13 UTC, Peter Bergeron
no flags Details

Description Shawn Bohrer 2012-05-13 18:36:55 UTC
+++ This bug was initially created as a clone of Bug #790922 +++

Description of problem:

The LCDd service fails to start because systemd is waiting for /run/LCDd.pid and LCDd does not create a pid file.

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

    systemd-44-8.fc17.x86_64
    lcdproc-0.5.5-3.fc17.x86_64

How reproducible:

    Every time.

Steps to Reproduce:

    1. Enable LCDd with appropropriate configuration for your hardware
    2. systemctl start LCDd.service
  
Actual results:

    systemd eventual times out starting the service.

Expected results:

    successfuly start LCDd


Work-around (suggested fix?)

    Remove "PIDFile=/run/LCDd.pid" from /usr/lib/systemd/system/LCDd.service

--- Additional comment from hugh on 2012-02-15 12:58:10 EST ---

Created attachment 562288 [details]
The fixed LCDd init script.

--- Additional comment from kwizart on 2012-03-10 14:40:14 EST ---

Can you reproduce with lcdproc-0.5.5-3.fc17 ?

Comment 1 Peter Bergeron 2012-06-19 22:53:52 UTC
This also happens for me with lcdproc-0.5.5-3.fc17/systemd-44-12.fc17.

Looks like the lcdproc project has updated their 0.5.5 ReadMe/Release Notes (2012-02-18) and added another Known Bug:

 - On recent Linux distributions which use RPM style init scripts the script
   init-LCDd.rpm hangs because it incorrectly references a pid file that is
   not created. Workaround: Remove the line '# pidfile: /var/run/LCDd.pid'.

LCDd starts up and runs if executed manually (/usr/sbin/LCDd -c /etc/lcdproc/LCDd.conf) but systemd times out and fails to start the service (systemctl start LCDd.service) because the unit file references a pid file (/run/LCDd.pid) which LCDd never creates.


This can be fixed by removing the pid file reference in the systemd unit file:

 Remove or comment out the "PIDFile=/run/LCDd.pid" line in the systemd unit file (/usr/lib/systemd/system/LCDd.service)
 systemctl daemon-reload
 systemctl start LCDd.service (success!)

Comment 2 Peter Bergeron 2012-06-22 17:13:16 UTC
Created attachment 593802 [details]
Corrected LCDd.service file

Replacement LCDd.service file modified from current file in master. I'd appreciate it if the package can be updated to use this one instead.

Comment 3 Nicolas Chauvet (kwizart) 2012-07-04 08:00:24 UTC
Is there anyone that can apply to co-maintainership of lcdproc here ?

Comment 4 Peter Bergeron 2012-07-05 10:44:20 UTC
(In reply to comment #3)
> Is there anyone that can apply to co-maintainership of lcdproc here ?

If I can get myself sponsored I could. I'm not currently a package maintainer but I do have a FAS account and I've read through most of the packaging documentation.
I've built my own private packages and spec files over the years.

Comment 5 Fedora Update System 2012-07-22 17:11:06 UTC
lcdproc-0.5.5-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/lcdproc-0.5.5-5.fc17

Comment 6 Fedora Update System 2012-07-23 20:24:47 UTC
Package lcdproc-0.5.5-5.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing lcdproc-0.5.5-5.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-11006/lcdproc-0.5.5-5.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-08-01 18:29:42 UTC
lcdproc-0.5.5-5.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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