Package: dhcp3-server
Version: 3.1.2-1
Severity: wishlist
Tags: patch

dhcp3-server requires an empty dhcpd.leases on first start. The
init.d script could easily help out the admin here, and make it even
easier to run dhcpd with /var/lib/dhcp3 as a tmpfs.

--- /tmp/dhcp3-server   2009-04-13 12:15:13.044225416 +0200
+++ dhcp3-server        2009-04-13 12:16:35.000000000 +0200
@@ -35,6 +35,7 @@
 NAME=dhcpd3
 DESC="DHCP server"
 DHCPDPID=/var/run/dhcpd.pid
+LEASESFILE=/var/lib/dhcp3/dhcpd.leases
 
 test_config()
 {
@@ -44,6 +45,8 @@
    /usr/sbin/dhcpd3 -t
    exit 1
  fi
+
+       [ -f $LEASESFILE ] || { touch $LEASESFILE; chmod 0600 $LEASESFILE; }
 }
 
 # single arg is -v for messages, -q for none

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dhcp3-server depends on:
ii  debconf [debconf-2.0]         1.5.26     Debian configuration management sy
ii  debianutils                   3.0.1      Miscellaneous utilities specific t
ii  dhcp3-common                  3.1.2-1    common files used by all the dhcp3
ii  libc6                         2.9-7      GNU C Library: Shared libraries
ii  lsb-base                      3.2-22     Linux Standard Base 3.2 init scrip

dhcp3-server recommends no packages.

Versions of packages dhcp3-server suggests:
pn  dhcp3-server-ldap             <none>     (no description available)

-- debconf-show failed


-- 
 .''`.   martin f. krafft <madd...@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to