From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19361 invoked from network); 10 Jul 2006 23:43:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Jul 2006 23:43:30 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 31028 invoked from network); 10 Jul 2006 23:43:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Jul 2006 23:43:23 -0000 Received: (qmail 9153 invoked by alias); 10 Jul 2006 23:43:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10509 Received: (qmail 9058 invoked from network); 10 Jul 2006 23:41:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Jul 2006 23:41:34 -0000 Received: (qmail 28054 invoked from network); 10 Jul 2006 23:41:33 -0000 Received: from mailin1.expro.pl (193.25.166.20) by a.mx.sunsite.dk with SMTP; 10 Jul 2006 23:41:33 -0000 Received: from europa-1.dmz.exprozone ([10.0.16.45] helo=europa.expro.pl) (envelope-sender ) by mailin1.expro.pl with esmtp (Exim 4.50) id 1G05Nc-0001am-5f for zsh-users@sunsite.dk; Tue, 11 Jul 2006 01:41:32 +0200 Received: by europa.expro.pl (Postfix, from userid 1001) id 546945360DE; Tue, 11 Jul 2006 01:41:32 +0200 (CEST) Date: Tue, 11 Jul 2006 01:41:32 +0200 From: Jan Srzednicki To: zsh-users@sunsite.dk Subject: rcc - an uniform approach to init/rc scripts Message-ID: <20060710234132.GJ75664@europa.expro.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 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