Revision 1ab56363
Added by Ermal Luçi over 16 years ago
- Do not restart ipfw-classifyd on every iteration just send a signal to reload the config. This way no data is lost
- Some cleanups to fix warning/spamming of the System logs
- Present is_module_loaded() function to check if a module is loaded.
etc/inc/config.inc | ||
---|---|---|
2834 | 2834 |
if($g['debug']) |
2835 | 2835 |
log_error("Config: FTP proxy disabled for interface {$ifent}"); |
2836 | 2836 |
|
2837 |
$helpers = exec("/bin/ps awux | grep \"/usr/local/sbin/ftp-proxy {$shaper_queue} -p {$port}\" | grep -v grep | sed \"s/ */ /g\" | cut -f2 -d\" \"");
|
|
2837 |
$helpers = `/bin/ps awux | grep "ftp-proxy" | grep "{$port}" | grep -v grep | awk '{ print $2 }'`;
|
|
2838 | 2838 |
if($helpers) |
2839 | 2839 |
mwexec("/bin/kill {$helpers}"); |
2840 | 2840 |
$interface_counter++; |
Also available in: Unified diff