summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2023-03-01 13:39:23 -0500
committerMike Pagano <mpagano@gentoo.org>2023-03-01 13:39:40 -0500
commit7adaac98b3ed54c43ce0b4a1dee5f6f6a4f9dab9 (patch)
tree3b76f4023186af4b323cca6214238944347aad55 /www-servers
parentdev-ml/dune-site: add 3.7.0 (diff)
downloadgentoo-7adaac98b3ed54c43ce0b4a1dee5f6f6a4f9dab9.tar.gz
gentoo-7adaac98b3ed54c43ce0b4a1dee5f6f6a4f9dab9.tar.bz2
gentoo-7adaac98b3ed54c43ce0b4a1dee5f6f6a4f9dab9.zip
www-servers/nginx-unit/files: Update conf.d and init.d files
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/nginx-unit/files/nginx-unit.confd1
-rw-r--r--www-servers/nginx-unit/files/nginx-unit.initd-r115
2 files changed, 12 insertions, 4 deletions
diff --git a/www-servers/nginx-unit/files/nginx-unit.confd b/www-servers/nginx-unit/files/nginx-unit.confd
index eedf0ffbd685..b9ce82d332ce 100644
--- a/www-servers/nginx-unit/files/nginx-unit.confd
+++ b/www-servers/nginx-unit/files/nginx-unit.confd
@@ -18,7 +18,6 @@
# Modules directory name
#NXT_MODULES="/usr/lib64/nginx-unit"
-
# State directory name
#NXT_STATE="/var/lib/nginx-unit"
diff --git a/www-servers/nginx-unit/files/nginx-unit.initd-r1 b/www-servers/nginx-unit/files/nginx-unit.initd-r1
index a9ad47834899..e4ea45cdbe35 100644
--- a/www-servers/nginx-unit/files/nginx-unit.initd-r1
+++ b/www-servers/nginx-unit/files/nginx-unit.initd-r1
@@ -4,13 +4,22 @@
command="/usr/sbin/unitd"
pidfile="/run/nginx-unit.pid"
-user=${NXT_USER:-nginx-unit}
-group=${NXT_GROUP:-nginx-unit}
+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_LOG:-/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} --modules ${NXT_MODULES} --state ${NXT_STATE} --tmp ${NXT_TMP}"
depend() {
use dns logger netmount
}
start_pre() {
- checkpath -d /var/lib/nginx-unit -o ${user}:${group} -m 0770
+ checkpath -d /var/lib/nginx-unit -o root:root -m 0770
}
+