Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: init.d completion
- X-seq: zsh-workers 13596
- From: teg@xxxxxxxxxx (Trond Eivind Glomsrød)
- To: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- Subject: Re: init.d completion
- Date: 11 Mar 2001 10:00:30 -0500
- Cc: <zsh-workers@xxxxxxxxxx>
- In-reply-to: <002101c0aa1f$4d5ccf50$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Red Hat, Inc.
- References: <002101c0aa1f$4d5ccf50$21c9ca95@xxxxxxxxxxxxxx>
- Sender: teg@xxxxxxxxxxxxxxxxxxxxxxx
"Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx> writes:
> Most (many) of scripts in our /etc/init.d are not executable,
All of them are here (Red Hat Linux - Wolverine), and I think they should be...
Anyway, running with "service foo start" is easier than completing a
specific directory... the first argument should be completed with
/etc/init.d/* (minus functions), the second would be possible
arguments of this script. This can be found in the usage string:
"Usage: $0 {start|stop|status|restart|condrestart|reload}"
Just grep what's inside the curly braces, and split it on "|".
--
Trond Eivind Glomsrød
Red Hat, Inc.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author