Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811747 - www-servers/nginx-unit: missing -w in initd file
Summary: www-servers/nginx-unit: missing -w in initd file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ralph Seichter
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-05 15:34 UTC by cyberbat
Modified: 2021-09-10 14:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cyberbat 2021-09-05 15:34:19 UTC
Small typo in files/nginx-unit.initd that prevents unitd from starting. Here is the patch:

--- nginx-unit.initd.orig       2021-09-05 18:30:23.969745462 +0300
+++ nginx-unit.initd    2021-09-05 18:30:38.739773689 +0300
@@ -10,5 +10,5 @@
 }
 
 start_pre() {
-       checkpath -d /var/lib/nginx-unit -o root:root 0770
+       checkpath -d /var/lib/nginx-unit -o root:root -w 0770
 }
Comment 1 Anton Bolshakov 2021-09-08 00:57:56 UTC
The origin problem:

/etc/init.d/nginx-unit restart
 * Caching service dependencies ...                                                                    [ ok ]
 * checkpath: empty or relative path
 * ERROR: nginx-unit failed to start


The "patch" is incorrect. Should be "-m" (or --mode) instead of "-w".
Comment 2 Larry the Git Cow gentoo-dev 2021-09-10 14:27:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e204f7e05cd1e8c7e5807ac54ad89027924a9d8a

commit e204f7e05cd1e8c7e5807ac54ad89027924a9d8a
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2021-09-10 14:27:37 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2021-09-10 14:27:37 +0000

    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>

 www-servers/nginx-unit/Manifest                 |  1 +
 www-servers/nginx-unit/files/nginx-unit.initd   |  4 +-
 www-servers/nginx-unit/files/nginx-unit.service | 13 ++++
 www-servers/nginx-unit/nginx-unit-1.25.0.ebuild | 87 +++++++++++++++++++++++++
 4 files changed, 103 insertions(+), 2 deletions(-)