diff options
author | Matthew Grooms <mgrooms@pfsense.org> | 2008-09-10 02:53:59 +0000 |
---|---|---|
committer | Matthew Grooms <mgrooms@pfsense.org> | 2008-09-10 02:53:59 +0000 |
commit | c8423fbfca5b17ab9224e4345a0e1dc5e18220db (patch) | |
tree | ea4dc92e38627b1eb738707c198a89d1fd96ba6f /etc/inc | |
parent | 4b176ed234e1439f607e363f9bf3296f2858d3bb (diff) | |
download | pfsense-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.inc | 4 |
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 */ |