Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219676 - [OpenRC] sys-apps/openrc: add --pretend support to runscript
Summary: [OpenRC] sys-apps/openrc: add --pretend support to runscript
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://roy.marples.name/projects/open...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 22:40 UTC by Davide Pesavento
Modified: 2009-02-15 23:11 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 Davide Pesavento (RETIRED) gentoo-dev 2008-04-28 22:40:36 UTC
As discussed with roy and zzam some time ago on IRC, please add a --pretend option to runscript.....
<snip>
[23:33:30] <Pesa> which asks the user to confirm before proceeding
[23:33:34] <Pesa> example
[23:33:51] <Pesa> if i do /etc/init.d/hald restart, xdm will be restarted too
[23:34:18] <Pesa> but the user may not know, and running that command within an X session may have undesired results
[23:34:58] <Pesa> --ask tells the user which services will be restarted, or stopped if any, and asks for confirmation
[23:35:19] <Pesa> the same applies for "start" action
[23:35:50] <Pesa> should be used like so: /etc/init.d/foo --ask <action>
[23:36:05] <rsmarples> no, i don't like that. i don't like interactiveness like that
[23:36:15] <rsmarples> how about a --pretend option instead?
[23:36:27] <Pesa> well, yes
[23:36:30] <rsmarples> it shows you the services it would start or stop if you did that
[23:36:42] <Pesa> yes, maybe it's even better
[23:36:52] <rsmarples> then you could pipe it if needed
[23:37:03] <Pesa> waiting for user input may be problematic indeed
[23:37:04] <zzam> or like emerge where --ask is --pretend + exactly one confirmation
[23:37:43] <Pesa> well, --pretend is just a --dry-run
[23:37:52] <zzam> sure
[23:38:49] <rsmarples> Pesa: file a bug asking for that at bugs.marples.name so I don't forget :)
</snip>
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2008-10-07 15:29:06 UTC
Roy: ping
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2009-02-05 17:17:56 UTC
Please file a feature request bug with the OpenRC project at http://roy.marples.name/projects/openrc
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2009-02-15 23:11:13 UTC
Done -> http://roy.marples.name/projects/openrc/ticket/151