blob: bae7c007fbfa3681a83c3fb452e332b8658c43a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/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
}
|