Ignore:
Timestamp:
2011-11-07T23:59:01+01:00 (5 years ago)
Author:
nico
Message:

package/ubus: use new service wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ubus/files/ubus.init

    r28496 r28840  
    11#!/bin/sh /etc/rc.common 
     2 
    23START=11 
    3 PIDFILE=/var/run/ubusd.pid 
     4 
     5SERVICE_DAEMONIZE=1 
     6SERVICE_WRITE_PID=1 
    47 
    58start() { 
    6         start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/ubusd 
     9        service_start /sbin/ubusd 
    710} 
    811 
    912stop() { 
    10         start-stop-daemon -K -x /sbin/ubusd -p $PIDFILE 
     13        service_stop /sbin/ubusd 
    1114} 
Note: See TracChangeset for help on using the changeset viewer.