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

packages/howl: use new service functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.