diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-04-25 20:51:54 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-04-25 20:52:18 -0400 |
commit | d8c3d46e3852f32552bea6bb954f4cf79423222e (patch) | |
tree | 7281e0e92fbc2ec0a4fbb051b60629e829a354c8 /etc/inc/services.inc | |
parent | afb2de1b82ee940470f387b0151b93aba9f5ec62 (diff) | |
download | pfsense-d8c3d46e3852f32552bea6bb954f4cf79423222e.zip pfsense-d8c3d46e3852f32552bea6bb954f4cf79423222e.tar.gz |
Create /var/run in chroot for dhcpd
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index c8fdf73..fb66393 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -65,6 +65,7 @@ function services_dhcpd_configure() { fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/etc\n"); fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/usr/local/sbin\n"); fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/var/db\n"); + fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/var/run\n"); fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/usr\n"); fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/lib\n"); fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/run\n"); @@ -318,6 +319,8 @@ EOD; /* create an empty leases database */ touch("{$g['dhcpd_chroot_path']}/var/db/dhcpd.leases"); + touch("{$g['varrun_path']}/dhcpd.pid"); + /* fire up dhcpd in a chroot */ mwexec("/usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot {$g['dhcpd_chroot_path']} -cf {$g['dhcpd_chroot_path']}/etc/dhcpd.conf " . |