Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 651104

Summary: sys-apps/openrc: zsh completion _rc-service spews errors as non-root
Product: Gentoo Hosted Projects Reporter: Nicole O'Connor <nrfoconnor+bugzillaGentoo>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nicole O'Connor 2018-03-21 18:31:13 UTC
% sudo rc-service open_rc-service:11: command not found: rc-service

_values:compvalues:11: not enough arguments
_rc-service:11: command not found: rc-service
_values:compvalues:11: not enough arguments
_rc-service:11: command not found: rc-service
_values:compvalues:11: not enough arguments
_rc-service:11: command not found: rc-service
_values:compvalues:11: not enough arguments


--

Altering /usr/share/zsh/site-functions/_rc-service to use the absolute path works, but the changes get clobbered when OpenRC updates because I'm not currently using epatch_user.
Comment 1 William Hubbs gentoo-dev 2018-04-01 19:03:02 UTC
That is really not the correct fix for this. The question is whether
rc-service belongs in bin or sbin. If you are wanting to use rc-service,
or parts of it, as non-root, that opens up the possibility of putting it
in bin.
Comment 2 William Hubbs gentoo-dev 2018-11-09 23:43:52 UTC
Once you upgrade to baselayout-2.6-r1 this issue will resolve itself.
The issue was that the *sbin directories were not in the path for users
until that version of baselayout.