From f2a9965a2cb12983eda3dd55a04329f08e60363d Mon Sep 17 00:00:00 2001 From: Yu Fang Date: Sun, 20 Sep 2020 16:16:58 +0800 Subject: gateway-go: add default config and gateway-go.init for background service Signed-off-by: Yu Fang --- net/gateway-go/files/gateway-go.init | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 net/gateway-go/files/gateway-go.init (limited to 'net/gateway-go/files') diff --git a/net/gateway-go/files/gateway-go.init b/net/gateway-go/files/gateway-go.init new file mode 100644 index 000000000..9b74c7ec6 --- /dev/null +++ b/net/gateway-go/files/gateway-go.init @@ -0,0 +1,17 @@ +#!/bin/sh /etc/rc.common + +START=99 +STOP=10 +USE_PROCD=1 + +PROG="/usr/bin/gateway-go" +CONF="/etc/gateway-go/gateway-go.yaml" + +start_service() { + procd_open_instance + procd_set_param command $PROG -c $CONF + procd_set_param stdout 1 + procd_set_param stderr 1 + procd_set_param respawn + procd_close_instance +} -- cgit v1.2.3