Ignore:
Timestamp:
2011-11-10T00:38:00+01:00 (5 years ago)
Author:
nico
Message:

packages/ipsec-tools: use new service functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ipsec-tools/files/racoon.init

    r28102 r28911  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2009 OpenWrt.org 
    3 START=49 
     2# Copyright (C) 2009-2011 OpenWrt.org 
    43# Copyright (C) 2011 Artem Makhutov 
    54 
     5START=49 
     6 
     7SERVICE_USE_PID=1 
     8 
    69start() { 
    7         setkey -f /etc/ipsec.conf 
    8         mkdir /var/racoon/ 
    9  
    10         /usr/sbin/racoon -f /etc/racoon/racoon.conf 
     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 
    1113} 
    1214 
    1315stop() { 
    14         killall racoon 
    15         killall racoonctl 
     16        service_stop /usr/sbin/racoon 
    1617} 
    17  
Note: See TracChangeset for help on using the changeset viewer.