diff options
author | 2021-09-10 10:27:37 -0400 | |
---|---|---|
committer | 2021-09-10 10:27:37 -0400 | |
commit | e204f7e05cd1e8c7e5807ac54ad89027924a9d8a (patch) | |
tree | 42ce33e929ef10339e367c6547296f2e7e2e9136 /www-servers/nginx-unit/files | |
parent | dev-python/flit: add docutils dep (diff) | |
download | gentoo-e204f7e05cd1e8c7e5807ac54ad89027924a9d8a.tar.gz gentoo-e204f7e05cd1e8c7e5807ac54ad89027924a9d8a.tar.bz2 gentoo-e204f7e05cd1e8c7e5807ac54ad89027924a9d8a.zip |
www-servers/nginx-unit: Version bump, eapi bump, fix bugs
Add version 1.25.0
Add systemd unit file
EAPI 8 bump
Fix openrc init.d file
Closes: https://bugs.gentoo.org/811744
Closes: https://bugs.gentoo.org/811747
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'www-servers/nginx-unit/files')
-rw-r--r-- | www-servers/nginx-unit/files/nginx-unit.initd | 4 | ||||
-rw-r--r-- | www-servers/nginx-unit/files/nginx-unit.service | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/www-servers/nginx-unit/files/nginx-unit.initd b/www-servers/nginx-unit/files/nginx-unit.initd index 41165a659d93..f7bd33af9334 100644 --- a/www-servers/nginx-unit/files/nginx-unit.initd +++ b/www-servers/nginx-unit/files/nginx-unit.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 command="/usr/sbin/unitd" @@ -10,5 +10,5 @@ depend() { } start_pre() { - checkpath -d /var/lib/nginx-unit -o root:root 0770 + checkpath -d /var/lib/nginx-unit -o root:root -m 0770 } diff --git a/www-servers/nginx-unit/files/nginx-unit.service b/www-servers/nginx-unit/files/nginx-unit.service new file mode 100644 index 000000000000..e77bb8a38d62 --- /dev/null +++ b/www-servers/nginx-unit/files/nginx-unit.service @@ -0,0 +1,13 @@ +[Unit] +Description=NGINX Unit +Wants=network-online.target +After=network-online.target + +[Service] +Type=forking +PIDFile=/run/nginx-unit.pid +ExecStart=/usr/sbin/unitd +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target |