Changeset 28904


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

packages/howl: use new service functions

Location:
packages/libs/howl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/howl/Makefile

    r26068 r28904  
    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:=howl 
    1111PKG_VERSION:=1.0.0 
    12 PKG_RELEASE:=3 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    118118        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/autoipd $(1)/usr/sbin/ 
    119119        $(INSTALL_DIR) $(1)/etc/init.d 
    120         $(INSTALL_DATA) ./files/autoipd.init $(1)/etc/init.d/autoipd 
     120        $(INSTALL_BIN) ./files/autoipd.init $(1)/etc/init.d/autoipd 
    121121endef 
    122122 
     
    134134        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nifd $(1)/usr/sbin/ 
    135135        $(INSTALL_DIR) $(1)/etc/init.d 
    136         $(INSTALL_DATA) ./files/nifd.init $(1)/etc/init.d/nifd 
     136        $(INSTALL_BIN) ./files/nifd.init $(1)/etc/init.d/nifd 
    137137endef 
    138138 
  • packages/libs/howl/files/autoipd.init

    r15247 r28904  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 DEFAULT=/etc/default/autopid 
    6 RUN_D=/var/run 
    7 PID_F=$RUN_D/autoipd.pid 
     6# XXX: pid-file is /var/run/autoipd-<INTERFACE>.pid 
     7SERVICE_USE_PID= 
    88 
    99start() { 
    10         [ -f $DEFAULT ] && . $DEFAULT 
    11         [ -d $RUN_D ] || mkdir -p $RUN_D 
    12         autoipd $OPTIONS 
     10        service_start /usr/sbin/autoipd 
     11} 
     12stop() { 
     13        service_stop /usr/sbin/autoipd 
    1314} 
    1415 
    15 stop() { 
    16         [ -f $PID_F ] && kill $(cat $PID_F) 
    17 } 
    18  
  • packages/libs/howl/files/mDNSResponder.init

    r15247 r28904  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 DEFAULT=/etc/default/mDNSResponder 
    6 RUN_D=/var/run 
    7 PID_F=$RUN_D/mDNSResponder.pid 
     6SERVICE_USE_PID=1 
    87 
    98start() { 
    10         [ -f $DEFAULT ] && . $DEFAULT 
    11         [ -d $RUN_D ] || mkdir -p $RUN_D 
    12         mDNSResponder $OPTIONS 
     9        service_start /usr/sbin/mDNSResponder 
    1310} 
    1411stop() { 
    15         [ -f $PID_F ] && kill $(cat $PID_F) 
     12        service_stop /usr/sbin/mDNSResponder 
    1613} 
    1714 
  • packages/libs/howl/files/nifd.init

    r15247 r28904  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 DEFAULT=/etc/default/nifd 
    6 RUN_D=/var/run 
    7 PID_F=$RUN_D/nifd.pid 
     6SERVICE_USE_PID=1 
    87 
    98start() { 
    10         [ -f $DEFAULT ] && . $DEFAULT 
    11         [ -d $RUN_D ] || mkdir -p $RUN_D 
    12         nifd $OPTIONS 
     9        service_start /usr/sbin/nifd 
    1310} 
    1411stop() { 
    15         [ -f $PID_F ] && kill $(cat $PID_F) 
     12        service_stop /usr/sbin/nifd 
    1613} 
    1714 
Note: See TracChangeset for help on using the changeset viewer.