#!/sbin/openrc-run # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 command="/usr/bin/gerbera" command_args="--logfile ${GERBERA_LOGFILE} --config ${GERBERA_CONFIG} --port ${GERBERA_PORT} ${GERBERA_OPTIONS}" command_user="${GERBERA_USER}:${GERBERA_GROUP}" command_background=true start_stop_daemon_args="--wait 500" retry="10" pidfile="/run/${RC_SVCNAME}.pid" depend() { need net # In order to properly support this (need vs use), we would have to # parse ${GERBERA_CONFIG} and see if mysql is enabled and if it is # pointing to the local system. #368409 } start_pre() { checkpath --owner "${GERBERA_USER}:${GERBERA_GROUP}" \ --mode 0644 \ --file "${GERBERA_LOGFILE}" }