You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-servers/nginx-unit/files/nginx-unit.initd-r2

26 lines
808 B

#!/sbin/openrc-run
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/sbin/unitd"
pidfile="/run/nginx-unit.pid"
NXT_USER=${NXT_USER:-nginx-unit}
NXT_GROUP=${NXT_GROUP:-nginx-unit}
NXT_CONTROL=${NXT_CONTROL:-unix:/run/nginx-unit.sock}
NXT_PID=${NXT_PID:-/run/nginx-unit.pid}
NXT_LOG=${NXT_LOG:-/var/log/nginx-unit}
NXT_MODULES=${NXT_MODULES:-/usr/lib64/nginx-unit}
NXT_STATE=${NXT_STATE:-/var/lib/nginx-unit}
NXT_TMP=${NXT_TMP:-/usr/tmp}
command_args=" --user ${NXT_USER} --group ${NXT_GROUP} --control ${NXT_CONTROL} --pid ${NXT_PID} --log ${NXT_LOG} --modulesdir ${NXT_MODULES} --statedir ${NXT_STATE} --tmpdir ${NXT_TMP}"
depend() {
use dns logger netmount
}
start_pre() {
checkpath -d /var/lib/nginx-unit -o root:root -m 0770
}