packages/net/ipsec-tools/files/racoon.init
Noah Meyerhans d0b0571161 net/ipsec-tools: Fix the racoon command line in /etc/init.d/racoon
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2014-12-11 22:52:12 -08:00

17 lines
442 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2009-2011 OpenWrt.org
# Copyright (C) 2011 Artem Makhutov
# Copyright (C) 2014 Noah Meyerhans <frodo@morgul.net>
USE_PROCD=1
START=49
start_service() {
mkdir -m 0700 -p /var/racoon
[ -f /etc/ipsec.conf ] && /usr/sbin/setkey -f /etc/ipsec.conf
procd_open_instance
procd_set_param command /usr/sbin/racoon -F -f /etc/racoon.conf
procd_set_param respawn
procd_close_instance
}