summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-04-25 20:51:54 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-04-25 20:52:18 -0400
commitd8c3d46e3852f32552bea6bb954f4cf79423222e (patch)
tree7281e0e92fbc2ec0a4fbb051b60629e829a354c8 /etc/inc/services.inc
parentafb2de1b82ee940470f387b0151b93aba9f5ec62 (diff)
downloadpfsense-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.inc3
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 " .
OpenPOWER on IntegriCloud