You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
633 B

#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
depend() {
need net
use dns
after sshd
}
start() {
ebegin "Starting turnserver"
checkpath -q -d -m 0755 -o turnserver:turnserver /var/run/turnserver
checkpath -q -f -m 0660 -o turnserver:turnserver /var/log/turnserver.log
start-stop-daemon --start --user turnserver --exec /usr/bin/turnserver -- -o \
--pidfile /var/run/turnserver/turnserver.pid >/dev/null
eend $?
}
stop() {
ebegin "Stopping turnserver"
start-stop-daemon --stop --quiet --pidfile /var/run/turnserver/turnserver.pid
eend $?
}