Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497740 - New feature: remove a service from all runlevels
Summary: New feature: remove a service from all runlevels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 481182
  Show dependency tree
 
Reported: 2014-01-10 23:07 UTC by Benda Xu
Modified: 2014-01-14 04:39 UTC (History)
0 users

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


Attachments
operate-all-runlevels.patch (operate-all-runlevels.patch,2.71 KB, patch)
2014-01-13 06:56 UTC, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2014-01-10 23:07:54 UTC
This feature comes from Debian, too, which calls for a single command to remove a service from all runlevels reliably, as

# update-rc.d <svc> [-f] remove

It used when a package changes <svc> to, say, <svc0> and needs a cleanup of the old symlinks.


A similar rc-update syntax could be desinged as

rc-update del <svc> -a

FYI: the present OpenRC treats "rc-update del <svc>" as removing <svc> from the current runlevel.

Reproducible: Always
Comment 1 Benda Xu gentoo-dev 2014-01-12 07:34:32 UTC
We have an inconsistency in the CLI,

"rc-update show" is for ALL runlevels, while
"rc-update add/del <svc>" is only for the CURRENT runlevel.
Comment 2 Benda Xu gentoo-dev 2014-01-13 06:56:55 UTC
Created attachment 367770 [details, diff]
operate-all-runlevels.patch
Comment 3 William Hubbs gentoo-dev 2014-01-13 17:48:16 UTC
This is fixed in commit abadaa0 and will be included in OpenRC-0.13.
Comment 4 Benda Xu gentoo-dev 2014-01-14 04:39:35 UTC
Thanks William. I appreciate for your refinement of the patch.