unitas/net-misc/jicofo-bin/files/jicofo-init.d

29 lines
1.0 KiB
D
Raw Normal View History

2020-03-29 11:48:45 +02:00
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# Include jicofo defaults if available
if [ -f /etc/jitsi/jicofo/config ]; then
. /etc/jitsi/jicofo/config
fi
# Assign default host if not configured
if [ ! $JICOFO_HOST ]; then
JICOFO_HOST=localhost
fi
command="/usr/share/jicofo/jicofo.sh"
command_args=" --host=$JICOFO_HOST --domain=$JICOFO_HOSTNAME --port=$JICOFO_PORT --secret=$JICOFO_SECRET --user_name=$JICOFO_AUTH_USER --user_domain=$JICOFO_AUTH_DOMAIN --user_password=$JICOFO_AUTH_PASSWORD $JICOFO_OPTS"
start_stop_daemon_args="--chdir /usr/share/jicofo --user jicofo:jitsi"
start_stop_daemon_args="${start_stop_daemon_args} --stdout /var/log/jitsi/jicofo.log"
start_stop_daemon_args="${start_stop_daemon_args} --stderr /var/log/jitsi/jicofo.log"
start_stop_daemon_args="${start_stop_daemon_args} --env JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\""
required_dirs="/var/log/jitsi"
pidfile="/run/jicofo.pid"
command_background="true"
depend() {
use net logger
}