mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
package/relayd: use new service wrappers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28869 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b3cd44ba12
commit
4afd7dc6a4
@ -76,8 +76,10 @@ setup_interface_relay() {
|
||||
config_get_bool fwd_dhcp "$cfg" forward_dhcp 1
|
||||
[ $fwd_dhcp -eq 1 ] && append args "-D"
|
||||
|
||||
start-stop-daemon -b -S -m -p /var/run/$link.pid \
|
||||
-x /usr/sbin/relayd -- $args
|
||||
SERVICE_DAEMONIZE=1 \
|
||||
SERVICE_WRITE_PID=1 \
|
||||
SERVICE_PID_FILE="/var/run/$link.pid" \
|
||||
service_start /usr/sbin/relayd $args
|
||||
|
||||
uci_set_state network "$cfg" device "$ifaces"
|
||||
|
||||
@ -92,6 +94,7 @@ stop_interface_relay() {
|
||||
env -i ACTION="ifdown" DEVICE="$link" INTERFACE="$cfg" PROTO="relay" \
|
||||
/sbin/hotplug-call iface
|
||||
|
||||
service_kill relayd "/var/run/$link.pid"
|
||||
SERVICE_PID_FILE="/var/run/$link.pid" \
|
||||
service_stop /usr/sbin/relayd
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user