aboutsummaryrefslogtreecommitdiffstats
path: root/testing/coturn/turnserver.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-10-01 22:45:12 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-10-01 22:45:17 +0200
commitf8a827d09dfc357b527a5d086757ab047478f0fd (patch)
tree6b16350102a1ffc3febbfb234eecc2a9ca31b24b /testing/coturn/turnserver.initd
parent351bccf5f038a9fb791025aa493609100791736d (diff)
downloadaports-f8a827d09dfc357b527a5d086757ab047478f0fd.tar.bz2
aports-f8a827d09dfc357b527a5d086757ab047478f0fd.tar.xz
testing/coturn: new aport
Diffstat (limited to 'testing/coturn/turnserver.initd')
-rw-r--r--testing/coturn/turnserver.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/coturn/turnserver.initd b/testing/coturn/turnserver.initd
new file mode 100644
index 0000000000..5b5eae0759
--- /dev/null
+++ b/testing/coturn/turnserver.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+
+description="TURN and STUN Server"
+name=turnserver
+command=/usr/bin/turnserver
+command_user=turnserver
+pidfile=/run/turnserver/turnserver.pid
+command_args="--no-stdout-log --daemon --pidfile $pidfile"
+
+start_pre() {
+ checkpath --directory --owner turnserver:turnserver --mode 0775 \
+ /run/turnserver /var/log/turnserver
+}