Ignore:
Timestamp:
2011-11-13T23:15:40+01:00 (5 years ago)
Author:
nico
Message:

packages/chaosvpn: use new service functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/chaosvpn/files/chaosvpn.init

    r22831 r29056  
    11#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2010-2011 OpenWrt.org 
     3 
    24START=99 
     5 
     6SERVICE_DAEMONIZE=1 
    37 
    48start() 
     
    913                exit 1 
    1014        } 
    11         /usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf >/dev/null 2>&1 & 
     15        service_start /usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf 
    1216} 
    1317 
    1418stop() 
    1519{ 
    16         killall chaosvpn 
     20        service_stop /usr/sbin/chaosvpn 
    1721} 
Note: See TracChangeset for help on using the changeset viewer.