lldpd fails after reboot: /var/run/lldpd created in postinst, not by initscript

Bug #316335 reported by David McBride
4
Affects Status Importance Assigned to Milestone
lldpd (Debian)
Invalid
Undecided
Unassigned
lldpd (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: lldpd

Greetings,

The lldpd package creates /var/run/lldpd -- which lldpd uses as a chroot() jail -- in the postinst script.

However, /var/run on modern systems is a tmpfs which is dynamically generated at boot-time: this directory is not preserved over reboots. As a result, lldpd will fail to run after a reboot, because /var/run/lldpd does not exist.

The correct fix is to create the /var/run/lldpd directory as necessary as part of the start() branch of the init.d script, rather than creating it just once in the package postinst script.

(This seems to be a not-uncommon bug. Is there a lintian rule for catching this kind of error?)

Cheers,
David

Tags: bitesize

Related branches

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thanks, I can confirm this bug. I'm closing the Debian task for now, as I don't think they have /var/run on a tmpfs. Please feel free to reopen the Debian task (and report the bug to Debian) if you think that is wrong.

Changed in lldpd:
importance: Undecided → Medium
status: New → Triaged
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lldpd - 0.3.3-2

---------------
lldpd (0.3.3-2) unstable; urgency=low

  * Create /var/run/lldpd in init.d. /var/run can be in a ramfs.
    LP: #316335.
  * Bump Standards-Version to 3.8.1.

lldpd (0.3.3-1) unstable; urgency=low

  * New upstream version

lldpd (0.3.2-1) unstable; urgency=low

  * New upstream version

 -- Ubuntu Archive Auto-Sync <email address hidden> Wed, 29 Apr 2009 12:02:59 +0100

Changed in lldpd (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.