mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-26 08:55:57 +02:00
- Upstream feature release. - Fix command and command_args in init.d/automx2. Signed-off-by: Ralph Seichter <github@seichter.de> Closes: https://github.com/gentoo/gentoo/pull/40020 Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
26 lines
592 B
Text
26 lines
592 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
: ${AUTOMX2_CONF:="/etc/${RC_SVCNAME}.conf"}
|
|
: ${AUTOMX2_USER:="automx2"}
|
|
: ${AUTOMX2_ARGS:="--port 4243"}
|
|
|
|
command="/usr/bin/flask"
|
|
command_args="run ${AUTOMX2_ARGS}"
|
|
command_background="true"
|
|
command_user="${AUTOMX2_USER}"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
required_files="${AUTOMX2_CONF}"
|
|
|
|
depend() {
|
|
use logger net
|
|
before nginx
|
|
}
|
|
|
|
start_pre() {
|
|
export AUTOMX2_CONF
|
|
export EPYTHON="python"
|
|
export FLASK_APP="automx2.server:app"
|
|
export FLASK_ENV="production"
|
|
}
|