aboutsummaryrefslogtreecommitdiffstats
path: root/testing/coturn/turnserver.initd
blob: 5b5eae0759eb9fc635b321fa39b7d132b22450b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}