openvpn: daemon is already in the config #3223

This commit is contained in:
Franco Fichtner 2019-02-14 18:58:59 +01:00
parent bbe0592b83
commit 156d6f7287

View File

@ -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);
mwexecf('/usr/local/sbin/openvpn --config %s --daemon', $fpath);
mwexecf('/usr/local/sbin/openvpn --config %s', $fpath);
if (!file_exists("/var/run/booting")) {
configd_run("filter reload");