From 5a7cc1f9e9a94c0bf479cd498e5a51b8fce27511 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 24 Jun 2011 19:09:07 +0000 Subject: No need to use nohup when using mwexec_bg since it calls nohup itself. Also use fullpath to executables. --- etc/inc/openvpn.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc/openvpn.inc') diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index edd22be..5e4dd1e 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -161,7 +161,7 @@ function openvpn_port_next($prot) { function openvpn_get_cipherlist() { $ciphers = array(); - $cipher_out = shell_exec('openvpn --show-ciphers | grep "default key" | awk \'{print $1, "(" $2 "-" $3 ")";}\''); + $cipher_out = shell_exec('/usr/local/sbin/openvpn --show-ciphers | /usr/bin/grep "default key" | /usr/bin/awk \'{print $1, "(" $2 "-" $3 ")";}\''); $cipher_lines = explode("\n", trim($cipher_out)); sort($cipher_lines); foreach ($cipher_lines as $line) { @@ -606,7 +606,7 @@ function openvpn_restart($mode, $settings) { /* start the new process */ $fpath = $g['varetc_path']."/openvpn/{$mode_id}.conf"; - mwexec_bg("nohup openvpn --config {$fpath}"); + mwexec_bg("/usr/local/sbin/openvpn --config {$fpath}"); if (!$g['booting']) send_event("filter reload"); -- cgit v1.1