mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not kill INETD every time. Simply re-hup it.
This commit is contained in:
parent
1b45d5669e
commit
485c08bfc4
@ -706,13 +706,15 @@ function filter_nat_rules_generate() {
|
||||
|
||||
$natrules .= "\n";
|
||||
}
|
||||
|
||||
|
||||
if(!isset($config['system']['disablenatreflection'])) {
|
||||
fclose($fd);
|
||||
/* kill off any running inetd's */
|
||||
mwexec("/usr/bin/killall inetd");
|
||||
/* start new inetd */
|
||||
mwexec("/usr/sbin/inetd -a 127.0.0.1 /var/etc/inetd.conf");
|
||||
$helpers = trim(exec("ps ax | grep inetd | grep -v grep"));
|
||||
if(!$helpers)
|
||||
mwexec("/usr/sbin/inetd -a 127.0.0.1 /var/etc/inetd.conf");
|
||||
else
|
||||
mwexec("/usr/bin/killall -HUP inetd");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user