From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 05:12:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3DF6316D131 for ; Fri, 1 Jun 2007 05:12:34 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id E583913C45B for ; Fri, 1 Jun 2007 05:12:33 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 24674 invoked from network); 1 Jun 2007 15:12:33 +1000 Received: from 203-214-138-113.perm.iinet.net.au (HELO localhost) (203.214.138.113) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 1 Jun 2007 15:12:33 +1000 Date: Fri, 1 Jun 2007 15:12:28 +1000 From: Norberto Meijome To: gmoniey Message-ID: <20070601151228.77a72a12@localhost> In-Reply-To: <10906324.post@talk.nabble.com> References: <10902043.post@talk.nabble.com> <20070601131230.380039e8@localhost> <10906324.post@talk.nabble.com> X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: startup / shutdown script (rc.d) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 05:12:45 -0000 On Thu, 31 May 2007 21:05:17 -0700 (PDT) gmoniey wrote: > I actually looked at the apache one, and it seemed so complicated, there > were 2 files for it, one of which was relatively short and the other was > significantly long. > > Now dont get me wrong, they aren't beyond comprehension, but i simply dont > have the time right now to figure them out. > > I dont quite see how something as simple as "apachectl start" is expanded > into so many lines. > > maybe i will get some time in the near future to understand it... fair enough. How's this for a simpler script? --- #!/bin/sh RTOOL=/usr/local/bin/radeontool case "$1" in start) if [ -x $RTOOL ]; then echo -n ' Radeon' $RTOOL light $RTOOL light on $RTOOL light $RTOOL dac $RTOOL dac off $RTOOL dac fi ;; stop) ;; *) echo "Usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac ----- it doesnt read anything from rc.conf at all (which is where some of the extra stuff is) _________________________ {Beto|Norberto|Numard} Meijome "Too bad ignorance isn't painful." Don Lindsay I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.