Project

General

Profile

« Previous | Next » 

Revision 702a4702

Added by Scott Ullrich over 17 years ago

Shutdown deleted process

View differences:

etc/inc/openvpn.inc
45 45
require_once('pfsense-utils.inc');
46 46
require_once('util.inc');
47 47

  
48
// Shutdown running process if needed
49
function openvpn_delete($id) {
50
	global $g, $config;
51
	$ps = $g['varetc_path'] . "/openvpn_{$mode}{$id}.conf";
52
	$ps_id = `ps awux | grep $ps | awk '{ print $2 }'`;
53
	killbypid($ps_id);
54
}
55

  
48 56
// Return the list of ciphers OpenVPN supports
49 57
function openvpn_get_ciphers($pkg) {
50 58
	global $config;
......
811 819
EOD;
812 820
	print($javascript);
813 821
}
814
?>
822

  
823
?>
usr/local/pkg/openvpn.xml
284 284
			<type>input</type>
285 285
		</field>
286 286
	</fields>
287
	<custom_delete_php_command>
288
		openvpn_delete($id);
289
	</custom_delete_php_command>
287 290
	<custom_php_command_before_form>
288 291
		openvpn_get_ciphers(&amp;$pkg);
289 292
	</custom_php_command_before_form>

Also available in: Unified diff