Changeset 28922


Ignore:
Timestamp:
2011-11-10T00:49:13+01:00 (6 years ago)
Author:
nico
Message:

packages/ahcpd: use new service functions

Location:
packages/ipv6/ahcpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/ipv6/ahcpd/Makefile

    r28351 r28922  
    11#  
    2 # Copyright (C) 2007 OpenWrt.org 
     2# Copyright (C) 2007-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=ahcpd 
    1111PKG_VERSION:=0.52 
    12 PKG_RELEASE:=3 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/ipv6/ahcpd/files/ahcpd.init

    r28337 r28922  
    11#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2007-2011 OpenWrt.org 
    23 
    34START=71 
    4 PID_F="/var/run/ahcpd.pid" 
     5 
     6SERVICE_USE_PID=1 
     7 
    58EXTRA_COMMANDS="status" 
    69EXTRA_HELP="        status Print ahcpd's status to the log file." 
     
    9598        config_foreach ahcp_server ahcpd 
    9699        [ -z "$interfaces" ] && return 0 
    97         eval "/usr/sbin/ahcpd -D -I $PID_F $args $interfaces" 
     100        service_start /usr/sbin/ahcpd -D $args $interfaces 
    98101} 
    99102 
    100103stop() { 
    101         service_kill "ahcpd" "$PID_F" 
     104        service_stop /usr/sbin/ahcpd 
    102105} 
    103106 
    104107status() { 
    105         [ -f $PID_F ] && kill -USR1 $(cat $PID_F) 
     108        SERVICE_SIG="USR1" service_signal /usr/sbin/ahcpd 
    106109} 
Note: See TracChangeset for help on using the changeset viewer.