summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Seichter <github@seichter.de>2018-07-16 12:57:14 +0200
committerTony Vroon <chainsaw@gentoo.org>2018-07-17 18:14:24 +0100
commit45c246558a1abfd8c5fdb2b51d00b33faf1a0d81 (patch)
tree49bcaf68fbacab3b6aa8dafbffdf1a5d58a0aeb3 /www-servers/nginx-unit/files/nginx-unit.initd
parentdev-util/bitrise: bump version 1.19.0 (diff)
downloadgentoo-45c246558a1abfd8c5fdb2b51d00b33faf1a0d81.tar.gz
gentoo-45c246558a1abfd8c5fdb2b51d00b33faf1a0d81.tar.bz2
gentoo-45c246558a1abfd8c5fdb2b51d00b33faf1a0d81.zip
www-servers/nginx-unit: New package, by Ralph Seichter.
NGINX Unit is a dynamic web and application server, designed to run applications in multiple languages. Unit is lightweight, polyglot, and dynamically configured via API. The design of the server allows reconfiguration of specific application parameters as needed by the engineering or operations. (Source: http://unit.nginx.org/) Bug: https://bugs.gentoo.org/661074 Package-Manager: Portage-2.3.40, Repoman-2.3.9 Closes: https://github.com/gentoo/gentoo/pull/9249 Closes: https://bugs.gentoo.org/661074
Diffstat (limited to 'www-servers/nginx-unit/files/nginx-unit.initd')
-rwxr-xr-xwww-servers/nginx-unit/files/nginx-unit.initd14
1 files changed, 14 insertions, 0 deletions
diff --git a/www-servers/nginx-unit/files/nginx-unit.initd b/www-servers/nginx-unit/files/nginx-unit.initd
new file mode 100755
index 000000000000..23720abcc1e1
--- /dev/null
+++ b/www-servers/nginx-unit/files/nginx-unit.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/unitd"
+pidfile="/run/nginx-unit.pid"
+
+depend() {
+ use dns logger netmount
+}
+
+start_pre() {
+ checkpath -d /var/lib/nginx-unit -o root:root 0770
+}