shaper: move to mwexec and annotate

This commit is contained in:
Stephan de Wit 2025-03-07 16:37:01 +01:00
parent d52f6ca1f2
commit f59c938a58

View File

@ -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);