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

packages/ahcpd: use new service functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.