rtklib: move to github
[openwrt.org/packages.git] / net / racoon.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2009-2011 OpenWrt.org
3 # Copyright (C) 2011 Artem Makhutov
4
5 START=49
6
7 SERVICE_USE_PID=1
8
9 start() {
10 mkdir -m 0700 -p /var/racoon
11 [ -f /etc/ipsec.conf ] && /usr/sbin/setkey -f /etc/ipsec.conf
12 service_start /usr/sbin/racoon -f /etc/racoon.conf
13 }
14
15 stop() {
16 service_stop /usr/sbin/racoon
17 }
18
comments