summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorKirill Zakharenko <earwin@gmail.com>2015-10-27 19:32:50 +0300
committerIvan Kluchnikov <kluchnikovi@gmail.com>2017-02-07 18:59:54 +0300
commit800369d2583b2dcc09794bc93543161457ee1f0d (patch)
treec20c1b4017801599c4b9f8513ac026e1f6fd3351 /etc
parent236d81fa0c8cc21aea811e774d134aa2a3a0b6e0 (diff)
debian: new package for reg-proxy & ussd-proxy
Diffstat (limited to 'etc')
-rw-r--r--etc/reg-proxy.config3
l---------etc/service/reg-proxy1
l---------etc/service/ussd-proxy1
-rwxr-xr-xetc/sv/reg-proxy/log/run4
-rwxr-xr-xetc/sv/reg-proxy/run6
-rwxr-xr-xetc/sv/ussd-proxy/log/run4
-rwxr-xr-xetc/sv/ussd-proxy/run6
-rw-r--r--etc/ussd-proxy.config3
8 files changed, 28 insertions, 0 deletions
diff --git a/etc/reg-proxy.config b/etc/reg-proxy.config
new file mode 100644
index 000000000..7f626743f
--- /dev/null
+++ b/etc/reg-proxy.config
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+COMMAND_LINE="-S 172.31.0.16 -s 5040 -D 172.31.0.10 -d 5040"
diff --git a/etc/service/reg-proxy b/etc/service/reg-proxy
new file mode 120000
index 000000000..028031cd7
--- /dev/null
+++ b/etc/service/reg-proxy
@@ -0,0 +1 @@
+../sv/reg-proxy \ No newline at end of file
diff --git a/etc/service/ussd-proxy b/etc/service/ussd-proxy
new file mode 120000
index 000000000..c053903e6
--- /dev/null
+++ b/etc/service/ussd-proxy
@@ -0,0 +1 @@
+../sv/ussd-proxy/ \ No newline at end of file
diff --git a/etc/sv/reg-proxy/log/run b/etc/sv/reg-proxy/log/run
new file mode 100755
index 000000000..9f173c25f
--- /dev/null
+++ b/etc/sv/reg-proxy/log/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+LOG_FOLDER=/var/log/reg-proxy
+mkdir -p $LOG_FOLDER
+exec svlogd -tt $LOG_FOLDER
diff --git a/etc/sv/reg-proxy/run b/etc/sv/reg-proxy/run
new file mode 100755
index 000000000..0cb7e10ff
--- /dev/null
+++ b/etc/sv/reg-proxy/run
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+. /etc/reg-proxy.config
+exec 2>&1
+echo "reg-proxy restart" | /usr/bin/ts >> /var/log/runsv.log
+exec chrt 10 reg-proxy $COMMAND_LINE
diff --git a/etc/sv/ussd-proxy/log/run b/etc/sv/ussd-proxy/log/run
new file mode 100755
index 000000000..7868c0b3a
--- /dev/null
+++ b/etc/sv/ussd-proxy/log/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+LOG_FOLDER=/var/log/ussd-proxy
+mkdir -p $LOG_FOLDER
+exec svlogd -tt $LOG_FOLDER
diff --git a/etc/sv/ussd-proxy/run b/etc/sv/ussd-proxy/run
new file mode 100755
index 000000000..53a4d7356
--- /dev/null
+++ b/etc/sv/ussd-proxy/run
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+. /etc/ussd-proxy.config
+exec 2>&1
+echo "ussd-proxy restart" | /usr/bin/ts >> /var/log/runsv.log
+exec chrt 10 ussd-proxy $COMMAND_LINE
diff --git a/etc/ussd-proxy.config b/etc/ussd-proxy.config
new file mode 100644
index 000000000..91fd37f7b
--- /dev/null
+++ b/etc/ussd-proxy.config
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+COMMAND_LINE="-t sip:172.31.0.6:5060 -u sip:172.31.0.29:5090 -l8"