Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651104 - sys-apps/openrc: zsh completion _rc-service spews errors as non-root
Summary: sys-apps/openrc: zsh completion _rc-service spews errors as non-root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-21 18:31 UTC by Nicole O'Connor
Modified: 2018-11-09 23:43 UTC (History)
0 users

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 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.