diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-20 22:19:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-20 22:19:27 +0100 |
commit | eedf7b9dec39b69b43f7b581da418d37428db449 (patch) | |
tree | 696a9823b2c3e12a154cf148e2e667fa1e5f633d /www-servers/nginx-unit/files/nginx-unit.initd-r2 | |
parent | 2ffbfc63824a9e437090fb3c744670dd45369ae0 (diff) |
gentoo auto-resync : 20:05:2023 - 22:19:26
Diffstat (limited to 'www-servers/nginx-unit/files/nginx-unit.initd-r2')
-rw-r--r-- | www-servers/nginx-unit/files/nginx-unit.initd-r2 | 25 |
1 files changed, 25 insertions, 0 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 +} + |