mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
openvpn: proper daemonize instead of background job #3223
This commit is contained in:
parent
f10b710a58
commit
c217bee6f2
@ -1008,7 +1008,7 @@ function openvpn_restart($mode, $settings)
|
||||
/* start the new process */
|
||||
$fpath = "/var/etc/openvpn/{$mode_id}.conf";
|
||||
openvpn_clear_route($mode, $settings);
|
||||
mwexec_bg("/usr/local/sbin/openvpn --config " . escapeshellarg($fpath));
|
||||
mwexecf('/usr/local/sbin/openvpn --config %s --daemon', $fpath);
|
||||
|
||||
if (!file_exists("/var/run/booting")) {
|
||||
configd_run("filter reload");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user