[Bug 316335] [NEW] lldpd fails after reboot: /var/run/lldpd created in postinst, not by initscript

David McBride dwm at doc.ic.ac.uk
Mon Jan 12 11:22:58 UTC 2009


Public bug reported:

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

** Affects: lldpd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
lldpd fails after reboot: /var/run/lldpd created in postinst, not by initscript
https://bugs.launchpad.net/bugs/316335
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list