Changeset 28869


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

package/relayd: use new service wrappers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/relayd/files/relay.sh

    r26773 r28869  
    7777        [ $fwd_dhcp -eq 1 ] && append args "-D" 
    7878 
    79         start-stop-daemon -b -S -m -p /var/run/$link.pid \ 
    80                 -x /usr/sbin/relayd -- $args 
     79        SERVICE_DAEMONIZE=1 \ 
     80        SERVICE_WRITE_PID=1 \ 
     81        SERVICE_PID_FILE="/var/run/$link.pid" \ 
     82        service_start /usr/sbin/relayd $args 
    8183 
    8284        uci_set_state network "$cfg" device "$ifaces" 
     
    9395                /sbin/hotplug-call iface 
    9496 
    95         service_kill relayd "/var/run/$link.pid" 
     97        SERVICE_PID_FILE="/var/run/$link.pid" \ 
     98        service_stop /usr/sbin/relayd 
    9699} 
    97100 
Note: See TracChangeset for help on using the changeset viewer.