diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc index ea078c4fc..510a0400a 100644 --- a/src/etc/inc/globals.inc +++ b/src/etc/inc/globals.inc @@ -37,7 +37,6 @@ $g = array( "factory_shipped_password" => "opnsense", "dhcpd_chroot_path" => "/var/dhcpd", "unbound_chroot_path" => "/var/unbound", - "varrun_path" => "/var/run", "varetc_path" => "/var/etc", "vardb_path" => "/var/db", "admin_group" => "admins", diff --git a/src/sbin/gmirror_status_check.php b/src/sbin/gmirror_status_check.php index 3fd88d3ae..0d73b91a5 100644 --- a/src/sbin/gmirror_status_check.php +++ b/src/sbin/gmirror_status_check.php @@ -32,7 +32,7 @@ require_once("globals.inc"); require_once("gmirror.inc"); global $g; -$status_file = "{$g['varrun_path']}/gmirror.status"; +$status_file = '/var/run/gmirror.status'; $mirror_status = gmirror_get_status(); $mirror_list = array_keys($mirror_status); diff --git a/src/www/services_dhcpv6.php b/src/www/services_dhcpv6.php index dcfc0f97e..c3608952f 100644 --- a/src/www/services_dhcpv6.php +++ b/src/www/services_dhcpv6.php @@ -301,7 +301,7 @@ if ($_POST) { if (!$input_errors || $_POST['apply'] == 'Apply changes') { /* Stop DHCPv6 so we can cleanup leases */ - killbypid("{$g['dhcpd_chroot_path']}{$g['varrun_path']}/dhcpdv6.pid"); + killbypid("{$g['dhcpd_chroot_path']}/var/run/dhcpdv6.pid"); // dhcp_clean_leases(); /* dnsmasq_configure calls dhcpd_configure */ /* no need to restart dhcpd twice */ diff --git a/src/www/status_filter_reload.php b/src/www/status_filter_reload.php index 8e50abe1b..5f4a69059 100644 --- a/src/www/status_filter_reload.php +++ b/src/www/status_filter_reload.php @@ -1,6 +1,6 @@