summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index c076656..447a7c0 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -45,6 +45,14 @@ require_once('config.inc');
require_once('pfsense-utils.inc');
require_once('util.inc');
+// Shutdown running process if needed
+function openvpn_delete($id) {
+ global $g, $config;
+ $ps = $g['varetc_path'] . "/openvpn_{$mode}{$id}.conf";
+ $ps_id = `ps awux | grep $ps | awk '{ print $2 }'`;
+ killbypid($ps_id);
+}
+
// Return the list of ciphers OpenVPN supports
function openvpn_get_ciphers($pkg) {
global $config;
@@ -811,4 +819,5 @@ function openvpn_print_javascript2() {
EOD;
print($javascript);
}
-?>
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud