Changeset 28839


Ignore:
Timestamp:
2011-11-07T23:58:56+01:00 (6 years ago)
Author:
nico
Message:

package/netifd: use new service wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/netifd/files/etc/init.d/netifd

    r28611 r28839  
    11#!/bin/sh /etc/rc.common 
     2 
    23START=20 
    3 PIDFILE=/var/run/netifd.pid 
     4 
     5SERVICE_DAEMONIZE=1 
     6SERVICE_WRITE_PID=1 
    47 
    58start() { 
     
    912                echo '/tmp/%e.%p.%s.%t.core' > /proc/sys/kernel/core_pattern 
    1013        } 
    11         start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/netifd 
     14        service_start /sbin/netifd 
    1215        sleep 1 
     16} 
     17 
     18stop() { 
     19        service_stop /sbin/netifd 
    1320} 
    1421 
     
    1623        ubus call network reload 
    1724} 
    18  
    19 stop() { 
    20         [ -e "$PIDFILE" ] || return 
    21         start-stop-daemon -K -p $PIDFILE -x /sbin/netifd 
    22         rm -f "$PIDFILE" 
    23 } 
Note: See TracChangeset for help on using the changeset viewer.