Changeset 29066


Ignore:
Timestamp:
2011-11-13T23:16:00+01:00 (6 years ago)
Author:
nico
Message:

packages/srelay: use new service functions

Location:
packages/net/srelay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/srelay/Makefile

    r26061 r29066  
    11# 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=srelay 
    1111PKG_VERSION:=0.4.8b3 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/srelay/files/srelay.init

    r15247 r29066  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
     6SERVICE_USE_PID=1 
     7 
    58start() { 
    6         if [ -f /etc/srelay.conf ];then 
    7                 srelay -c /etc/srelay.conf -r -s  
    8         fi 
     9        service_start /usr/bin/srelay -c /etc/srelay.conf -r -s  
    910} 
    1011 
    1112stop() { 
    12         killall srelay 
     13        service_stop /usr/bin/srelay 
    1314} 
Note: See TracChangeset for help on using the changeset viewer.