aboutsummaryrefslogtreecommitdiff
path: root/net/gateway-go/files
diff options
context:
space:
mode:
authorYu Fang <newfarry@126.com>2020-09-20 16:16:58 +0800
committeriotserv <yu@iotserv.com>2020-09-21 12:37:47 +0800
commitf2a9965a2cb12983eda3dd55a04329f08e60363d (patch)
tree97044c46ea84e41894a12a9cee5e2124e83d940d /net/gateway-go/files
parent4d39346fb4ca38e7c4b2f20735efb09b9eccb587 (diff)
gateway-go: add default config and gateway-go.init for background service
Signed-off-by: Yu Fang <newfarry@126.com>
Diffstat (limited to 'net/gateway-go/files')
-rw-r--r--net/gateway-go/files/gateway-go.init17
1 files changed, 17 insertions, 0 deletions
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
+}