aboutsummaryrefslogtreecommitdiffstats
path: root/community/coturn/turnserver.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/coturn/turnserver.initd')
-rw-r--r--community/coturn/turnserver.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/coturn/turnserver.initd b/community/coturn/turnserver.initd
new file mode 100644
index 0000000000..5b5eae0759
--- /dev/null
+++ b/community/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
+}