aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2017-02-25 20:00:14 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2017-02-26 14:38:24 +0800
commit77fb98ee41930d96e3c5a6bdb9341df20ae3afcb (patch)
tree4d7f4aa3f29636b79e201d99a6e8109b2f01a386 /package/network/services
parentb24273fe71a794440f689a45ce53da069fe5fb60 (diff)
downloadupstream-77fb98ee41930d96e3c5a6bdb9341df20ae3afcb.tar.gz
upstream-77fb98ee41930d96e3c5a6bdb9341df20ae3afcb.tar.bz2
upstream-77fb98ee41930d96e3c5a6bdb9341df20ae3afcb.zip
relayd: remove old start-stop-service related code
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'package/network/services')
-rw-r--r--package/network/services/relayd/files/relay.init15
1 files changed, 0 insertions, 15 deletions
diff --git a/package/network/services/relayd/files/relay.init b/package/network/services/relayd/files/relay.init
index 028b61ea36..ac10f48b70 100644
--- a/package/network/services/relayd/files/relay.init
+++ b/package/network/services/relayd/files/relay.init
@@ -21,7 +21,6 @@ resolve_ifname() {
grep -qs "^ *$1:" /proc/net/dev && {
procd_append_param command -I "$1"
procd_append_param netdev "$1"
- append ifaces "$1"
}
}
@@ -36,26 +35,12 @@ resolve_network() {
start_relay() {
local cfg="$1"
- local args=""
- local ifaces=""
-
config_get proto "$cfg" proto
[ "$proto" = "relay" ] || return 0
config_get_bool disabled "$cfg" disabled 0
[ "$disabled" -gt 0 ] && return 0
- SERVICE_DAEMONIZE=1
- SERVICE_WRITE_PID=1
- SERVICE_PID_FILE="/var/run/relay-$cfg.pid"
- [ -f "$SERVICE_PID_FILE" ] && {
- if grep -q relayd "/proc/$(cat $SERVICE_PID_FILE)/cmdline"; then
- return 0
- else
- rm -f "$SERVICE_PID_FILE"
- fi
- }
-
procd_open_instance
procd_set_param command "$PROG"