29 lines
1.0 KiB
D
Executable File
29 lines
1.0 KiB
D
Executable File
#!/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
|
|
}
|