diff options
author | Mike Pagano <mpagano@gentoo.org> | 2023-05-20 15:07:57 -0400 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2023-05-20 15:07:57 -0400 |
commit | 22ec32f8b3d69b76278db53b1cee55ae1640a266 (patch) | |
tree | 09cf5c8b188416850d060896e0b58490d08eb87d /www-servers | |
parent | dev-qt/qtnetwork: QDnsLookup: make sure we don't overflow the buffer (diff) | |
download | gentoo-22ec32f8b3d69b76278db53b1cee55ae1640a266.tar.gz gentoo-22ec32f8b3d69b76278db53b1cee55ae1640a266.tar.bz2 gentoo-22ec32f8b3d69b76278db53b1cee55ae1640a266.zip |
www-servers/nginx-unit: Fix init.d script
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/nginx-unit/files/nginx-unit.initd-r2 | 25 | ||||
-rw-r--r-- | www-servers/nginx-unit/nginx-unit-1.30.0.ebuild | 2 |
2 files changed, 26 insertions, 1 deletions
diff --git a/www-servers/nginx-unit/files/nginx-unit.initd-r2 b/www-servers/nginx-unit/files/nginx-unit.initd-r2 new file mode 100644 index 000000000000..bae7c007fbfa --- /dev/null +++ b/www-servers/nginx-unit/files/nginx-unit.initd-r2 @@ -0,0 +1,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 +} + diff --git a/www-servers/nginx-unit/nginx-unit-1.30.0.ebuild b/www-servers/nginx-unit/nginx-unit-1.30.0.ebuild index 92bb5f48b16f..8d3e40e6aa94 100644 --- a/www-servers/nginx-unit/nginx-unit-1.30.0.ebuild +++ b/www-servers/nginx-unit/nginx-unit-1.30.0.ebuild @@ -92,7 +92,7 @@ src_install() { diropts -m 0770 keepdir /var/lib/${PN} - newinitd "${FILESDIR}/${PN}.initd-r1" ${PN} + newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} newconfd "${FILESDIR}"/nginx-unit.confd nginx-unit systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service } |