#!/sbin/openrc-run # Copyright 2023 lmkra # Distributed under the terms of GNU General Public License v3 TUWUNEL_CONFIG=${TUWUNEL_CONFIG:-/etc/tuwunel/tuwunel.toml} TUWUNEL_LOG_DIR=${TUWUNEL_LOG_DIR:-/var/log/tuwunel} TUWUNEL_USER=${TUWUNEL_USER:-matrix} TUWUNEL_GROUP=${TUWUNEL_GROUP:-matrix} name="tuwunel" pidfile="/run/tuwunel.pid" command="/usr/bin/tuwunel" command_background="true" command_user="${TUWUNEL_USER}:${TUWUNEL_GROUP}" output_log="${TUWUNEL_LOG_DIR}/TUWUNEL.log" error_log="${TUWUNEL_LOG_DIR}/TUWUNEL.log" start_stop_daemon_args="${start_stop_daemon_args} -- -c ${TUWUNEL_CONFIG}" retry=30 required_files="${TUWUNEL_CONFIG}" depend() { use dns need net provide matrix-homeserver }