zsh-users
 help / color / mirror / code / Atom feed
* rcc - an uniform approach to init/rc scripts
@ 2006-07-10 23:41 Jan Srzednicki
  2006-07-11 16:46 ` Scott Anderson
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Srzednicki @ 2006-07-10 23:41 UTC (permalink / raw)
  To: zsh-users

Hello,

After being quite tired of different init script styles on different
operating systems or distributions, I have decided to write a script
that would integrate all of their types into one simple command. Now it
has becomed quite featurable, so I decided to share it with The
Community. ;)

I have decided to use the name 'rcc', as it appears to be unused in unix
environment, yet is short and easy to type. The utility is very simple
to use, eg. in the form "rcc service start".

The real tough job was to get completion working with several different
script types, which are parsed and rcc tries to determine what commands
does given script accept. The thing has been tested on FreeBSD (with
both old and new style scripts), Debian and Gentoo; will probably work
on any SysV init style Linux distribution, but of course patches are
welcome.

Enough talking, here it is:

http://wrzask.pl/files/zsh_rcc

(all the instalation and usage information is in the comments)

Feedback is welcome. ;)

-- 
Jan Srzednicki
w@expro.pl


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rcc - an uniform approach to init/rc scripts
  2006-07-10 23:41 rcc - an uniform approach to init/rc scripts Jan Srzednicki
@ 2006-07-11 16:46 ` Scott Anderson
  2006-07-11 17:11   ` Jan Srzednicki
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Anderson @ 2006-07-11 16:46 UTC (permalink / raw)
  To: Jan Srzednicki, zsh-users

(Sorry for the top post, Yahoo! Mail beta does not quote nicely yet)

When I source this script, I get the following error:

> . zsh_rcc
zsh_rcc:342: command not found: compdef

Is compdef now obsolete?

Scott

----- Original Message ----
From: Jan Srzednicki <w@expro.pl>
To: zsh-users@sunsite.dk
Sent: Monday, July 10, 2006 5:41:32 PM
Subject: rcc - an uniform approach to init/rc scripts

Hello,

After being quite tired of different init script styles on different
operating systems or distributions, I have decided to write a script
that would integrate all of their types into one simple command. Now it
has becomed quite featurable, so I decided to share it with The
Community. ;)

I have decided to use the name 'rcc', as it appears to be unused in unix
environment, yet is short and easy to type. The utility is very simple
to use, eg. in the form "rcc service start".

The real tough job was to get completion working with several different
script types, which are parsed and rcc tries to determine what commands
does given script accept. The thing has been tested on FreeBSD (with
both old and new style scripts), Debian and Gentoo; will probably work
on any SysV init style Linux distribution, but of course patches are
welcome.

Enough talking, here it is:

http://wrzask.pl/files/zsh_rcc

(all the instalation and usage information is in the comments)

Feedback is welcome. ;)

-- 
Jan Srzednicki
w@expro.pl





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rcc - an uniform approach to init/rc scripts
  2006-07-11 16:46 ` Scott Anderson
@ 2006-07-11 17:11   ` Jan Srzednicki
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Srzednicki @ 2006-07-11 17:11 UTC (permalink / raw)
  To: Scott Anderson; +Cc: zsh-users

On Tue, Jul 11, 2006 at 09:46:21AM -0700, Scott Anderson wrote:
> (Sorry for the top post, Yahoo! Mail beta does not quote nicely yet)
> 
> When I source this script, I get the following error:
> 
> > . zsh_rcc
> zsh_rcc:342: command not found: compdef
> 
> Is compdef now obsolete?

I need to launch compinit before compdef becomes avalaible. Aight, I
haven't documented that. ;)

-- 
Jan Srzednicki
w@expro.pl


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-11 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-10 23:41 rcc - an uniform approach to init/rc scripts Jan Srzednicki
2006-07-11 16:46 ` Scott Anderson
2006-07-11 17:11   ` Jan Srzednicki

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).