diff options
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 |