[Bug 985417] Re: dhcpd cannot write /var/run/dhcpd.pid
Clint Byrum
clint at fewbar.com
Wed May 30 19:38:01 UTC 2012
Hello Varga, or anyone else affected,
Accepted isc-dhcp into precise-proposed. The package will build now and
be available in a few hours. Please test and give feedback here. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Thank you in advance!
** Changed in: isc-dhcp (Ubuntu Precise)
Status: In Progress => Fix Committed
** Tags added: verification-needed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/985417
Title:
dhcpd cannot write /var/run/dhcpd.pid
Status in “isc-dhcp” package in Ubuntu:
Fix Released
Status in “isc-dhcp” source package in Precise:
Fix Committed
Status in “isc-dhcp” source package in Quantal:
Fix Released
Bug description:
Description: Ubuntu precise (development branch)
Release: 12.04
---
isc-dhcp-server:
Telepítve: 4.1.ESV-R4-0ubuntu5
Jelölt: 4.1.ESV-R4-0ubuntu5
Verziótáblázat:
*** 4.1.ESV-R4-0ubuntu5 0
500 http://de.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
100 /var/lib/dpkg/status
---
when starting dhcpd the following can be observed in syslog:
Apr 19 08:09:09 u3 dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R4
Apr 19 08:09:09 u3 dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Apr 19 08:09:09 u3 dhcpd: All rights reserved.
Apr 19 08:09:09 u3 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 19 08:09:09 u3 dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R4
Apr 19 08:09:09 u3 dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Apr 19 08:09:09 u3 dhcpd: All rights reserved.
Apr 19 08:09:09 u3 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 19 08:09:09 u3 dhcpd: Wrote 0 leases to leases file.
Apr 19 08:09:09 u3 dhcpd: Can't create PID file /var/run/dhcpd.pid: Permission denied.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: isc-dhcp-server 4.1.ESV-R4-0ubuntu5
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu4
Architecture: amd64
Date: Thu Apr 19 08:09:16 2012
DhServerLeases:
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Beta amd64 (20120417)
SourcePackage: isc-dhcp
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.dhcp.dhcpd.conf: 2012-04-19T08:09:04.598083
----
[impact]
Actually create the pid file in the directory that's created by the upstart job, instead of having dhcpd try to create it in /run and fail miserably (though the server would start regardless).
[test case]
1) Install isc-dhcp-server on an Ubuntu 12.04 system
2) Update /etc/dhcp/dhcpd.conf to list a valid subnet (ideally, do the same with /etc/dhcp/dhcpd6.conf)
3) sudo stop isc-dhcp-server ; sudo start isc-dhcp-server (if also doing IPv6, then do the same for isc-dhcp-server6)
4) Check that /run/dhcp-server/dhcpd.pid exists and contains a valid pid (same for dhcpd6.pid if testing IPv6)
5) Check /var/log/syslog for any pid-related error message
[regression potential]
Can't see anything, the upstart job has always been creating the pid path and set the ownership, so even on a system where these would be broken, the init job would be broken already.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/985417/+subscriptions
More information about the foundations-bugs
mailing list