diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-01-25 13:38:12 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-01-25 13:38:12 -0500 |
commit | 9abe1997c80d62ff5e342b4ff118c651fbaaab1a (patch) | |
tree | f1048cf7b18a9b1f2a45923b4a3a505ab1f5f310 /etc/inc/captiveportal.inc | |
parent | a00e1d896becdd6364bda0c0d87e612f0f240f90 (diff) | |
download | pfsense-9abe1997c80d62ff5e342b4ff118c651fbaaab1a.zip pfsense-9abe1997c80d62ff5e342b4ff118c651fbaaab1a.tar.gz |
Brute force dnswatch kill if needed
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index e6d1591..0971c1c 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1071,6 +1071,8 @@ function setup_dnsfilter_entries() { fwrite($fd, $hostnameent['hostname'] . "\n"); fclose($fd); killbypid("{$g['tmp_path']}/dnswatch-cpah.pid"); + // For some reason the killbypid() is not working. Brute force if needed. + exec("/bin/ps awux | grep -v /usr/bin/grep | grep dnswatch-cpah.pid | /usr/bin/awk '{ print \$2 }' | /usr/bin/xargs kill"); mwexec("/usr/local/sbin/dnswatch {$g['tmp_path']}/dnswatch-cpah.pid 300 '/etc/rc.captiveportal_configure' {$cp_filterdns_filename}"); } |