summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorMatthew Grooms <mgrooms@pfsense.org>2008-09-10 02:53:59 +0000
committerMatthew Grooms <mgrooms@pfsense.org>2008-09-10 02:53:59 +0000
commitc8423fbfca5b17ab9224e4345a0e1dc5e18220db (patch)
treeea4dc92e38627b1eb738707c198a89d1fd96ba6f /etc/inc
parent4b176ed234e1439f607e363f9bf3296f2858d3bb (diff)
downloadpfsense-c8423fbfca5b17ab9224e4345a0e1dc5e18220db.zip
pfsense-c8423fbfca5b17ab9224e4345a0e1dc5e18220db.tar.gz
Make sure the /var/db/racoon path exists before starting racoon. This is
needed to ensure racoonctl can communicate properly with racoon.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index b477b89..ce4e477 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -781,6 +781,10 @@ EOD;
fclose($fd);
}
+ /* needed for racoonctl admin socket */
+ if (!file_exists("/var/db/racoon"))
+ mkdir("/var/db/racoon/");
+
/* mange racoon process */
if (is_process_running("racoon")) {
/* We are already online, reload */
OpenPOWER on IntegriCloud