blob: 3185acdfe39b9258595f607e8a6ed575861723d0 (
plain) (
tree)
|
|
#!/sbin/openrc-run
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: ${MINIFLUX_USER:=miniflux}
: ${MINIFLUX_GROUP:=nobody}
: ${MINIFLUX_CONF:=/etc/miniflux.conf}
name="miniflux daemon"
description="Miniflux Web Server"
command=/usr/bin/miniflux
command_args="${miniflux_args} -c ${MINIFLUX_CONF}"
command_background="true"
command_user="${MINIFLUX_USER}:${MINIFLUX_GROUP}"
error_log="/var/log/${RC_SVCNAME}.err"
pidfile="/run/${RC_SVCNAME}.pid"
start_pre() {
checkpath --file --owner "${MINIFLUX_USER}":root --mode 0640 \
"${error_log}"
}
|