From 2eae7fc9fe2ee49c5cb3480305cb59da820a6595 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 2 Jun 2007 20:51:33 +0000 Subject: [PATCH] * Remove path from racoon grep * Remove [r] from racoon and simply grep for racoon --- etc/inc/vpn.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 7cd235dd20..9ab60ae3e5 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -562,7 +562,7 @@ EOD; /* We are already online, reload */ mwexec("/usr/local/sbin/racoonctl reload-config"); sleep(1); - exec("/bin/ps auxw | grep \"/usr/local/sbin/[r]acoon\" | awk '{print $2}'", $racoonpid); + exec("/bin/ps auxw | grep \"racoon\" | awk '{print $2}'", $racoonpid); if(! empty($racoonpid)) { mwexec("/usr/bin/kill -HUP $racoonpid[0]"); }