mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
shaper: move to mwexec and annotate
This commit is contained in:
parent
d52f6ca1f2
commit
f59c938a58
@ -160,6 +160,9 @@ function filter_configure_sync($verbose = false, $load_aliases = true)
|
||||
/* Use filter lock to not allow concurrent filter reloads during this run. */
|
||||
$fobj = new \OPNsense\Core\FileObject('/tmp/rules.debug', 'a+', 0600, LOCK_EX);
|
||||
|
||||
/* kickstart dnctl regardless of shaping configuration */
|
||||
mwexec('/etc/rc.d/dnctl start', true);
|
||||
|
||||
ifgroup_setup();
|
||||
|
||||
service_log('.', $verbose);
|
||||
@ -373,8 +376,6 @@ function filter_configure_sync($verbose = false, $load_aliases = true)
|
||||
|
||||
$fobj->truncate(0)->write($rules);
|
||||
|
||||
configd_run('shaper reload');
|
||||
|
||||
@file_put_contents('/tmp/rules.limits', $limitrules);
|
||||
mwexec('/sbin/pfctl -Of /tmp/rules.limits');
|
||||
exec('/sbin/pfctl -f /tmp/rules.debug 2>&1', $rules_error, $rules_loading);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user