diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-12 05:38:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-12 05:38:33 +0000 |
commit | 485c08bfc44bd7cc7cf9ca5688af215a07762b08 (patch) | |
tree | 00d603ebd5c4df62b8db14bab1a5108722c258eb /etc | |
parent | 1b45d5669e87a8f7dc2104fc4f2bab0cccdccd8b (diff) | |
download | pfsense-485c08bfc44bd7cc7cf9ca5688af215a07762b08.zip pfsense-485c08bfc44bd7cc7cf9ca5688af215a07762b08.tar.gz |
Do not kill INETD every time. Simply re-hup it.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 86c067f..9837d98 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -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"); + } } |