Changeset 29048


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

packages/aprx: use new service functions

Location:
packages/net/aprx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/aprx/Makefile

    r22761 r29048  
    11# 
    2 # Copyright (C) 2008-2010 OpenWrt.org 
     2# Copyright (C) 2008-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1111PKG_REV:=421 
    1212PKG_VERSION:=2.00_r$(PKG_REV) 
    13 PKG_RELEASE:=1 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/net/aprx/files/aprx.init

    r11918 r29048  
    11#!/bin/sh /etc/rc.common 
    2 #Init script for aprx 
     2# Copyright (C) 2008-2011 OpenWrt.org 
    33 
    44START=99 
    5 APRX_BIN="/usr/sbin/aprx" 
    6 APRX_LOG_DIR="/var/log/aprx" 
    75 
    8 system_config() { 
    9         local cfg="$1" 
     6SERVICE_USE_PID=1 
    107 
    11         config_get hostname "$cfg" hostname 
     8start() { 
     9        mkdir -m 0755 -p /var/log/aprx 
     10        service_start /usr/sbin/aprx 
    1211} 
    1312 
    14  
    15 start() { 
    16         [ -x "$APRX_BIN" ] || return 1 
    17         [ -d "$APRX_LOG_DIR" ] || mkdir -p $APRX_LOG_DIR 
    18         $APRX_BIN 
    19         } 
    20  
    2113stop() { 
    22         killall aprx 
     14        service_stop /usr/sbin/aprx 
    2315} 
Note: See TracChangeset for help on using the changeset viewer.